If a remote folder mounted with SMB/windows share has read only access, JNotify will return an error and will not be able to monitor events. Returned error is 'code 5, access is denied'
Thanks for the comment.
Actually the current behaviour is:
- if write permissions are not given -> JNotify returns error code 5
- if write permissions are given, JNotify works in a test with a Windows share, it did not work in a test with a linux-based SMB share
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
exact error is:
net.contentobjects.jnotify.win32.JNotifyException_win32: Error 5 : Access denied
I don't think the windows API support monitoring of remote file systems.
Thanks for the comment.
Actually the current behaviour is:
- if write permissions are not given -> JNotify returns error code 5
- if write permissions are given, JNotify works in a test with a Windows share, it did not work in a test with a linux-based SMB share
looks like there a possibly unnecessary permission requested here:
http://jnotify.cvs.sourceforge.net/viewvc/jnotify/jnotify_win32/WatchData.cpp?revision=1.6&view=markup
I`m guessing that it will work without FILE_SHARE_WRITE | FILE_SHARE_DELETE.
at the moment I don't have an environment to build JNotify, feel free to try to build it and test.
Try http://sourceforge.net/projects/jnotify/files/jnotify/jnotify-0.94/jnotify-lib-0.94.zip/download