c - Use libfuse in a project, without root access (for installation)? FTP mounts & inotify/kqueue/FSEvents -


i'd application able show directory listing remote ftp (or sftp etc) location. when file/directory changes in remote directory tree, application should update view relevant changes.

because traversing entire tree slow , wasteful, i'd use along lines of fsevents (inotify/kqueues on linux), these libraries filesystem-based, , connection ftp server not same mounted filesystem.

in order make these libraries work, i'd need mount filesystem backed ftp/sftp on local machine, attach fseventstream (or kqueue etc) local mount. know fuse can this, there way can use fuse without user having first install it? mean, can bundle (mac) application , create mounts without having put user through process of running installer package copy libfuse , kernel modules system? assume /dev/fuse exists, or can live outside /dev/ path, inside application directory?

nice mac applications installed simple drag & drop , i'd keep mine way if possible. i'm unclear on if it's possible use libfuse directly (provided files included app), without installing in system paths.

alternatively, have other suggestions monitoring changes on ftp, without polling?

unfortunately ftp , sftp not support form of client notification.

much http based on request/response scheme, each data transfer initiated client. makes things worse that, contrary http, there no way ask server inform client of changes since specific date.

this means not have use polling, said polling no means lightweight.

as far fuse related, ftp , sftp modules available update view of filesystem when userspace applications ask directory listing (e.g. hitting refresh in file browser window). not perform polling on own. userspace application have initiate refresh polling directory itself.

edit:

to clarify couple of things, recent versions of fuse support notification events. pass through events modules kernel. modules still have generate them , in case of ftp/sftp client module impossible without polling server.

also keep in mind many current nfs implementations not support change notifications either, despite fact nfsv4.1 has necessary provisions. many smb/cifs servers (esp. in cheap network-attached-storage embedded systems) have limited no support.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -