A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
Hi folks, we are experiencing an issue where data files being created or updated by SFTP client transfer appear to generate events resulting in fswatch being executed before the full file is written.
Our fswatch CLI usage can be seen at https://github.com/tagbase/tagbase-server/blob/main/services/fswatch/post.sh#L5
Note the --event Created --event MovedTo --event IsFile --event Updated flags.
Can someone suggest a method for invoking fswatch only when the file (transferred by SFTP) has been fully written?
Thanks in advance.
Hi folks, we are experiencing an issue where data files being created or updated by SFTP client transfer appear to generate events resulting in fswatch being executed before the full file is written. Our
fswatch
CLI usage can be seen at https://github.com/tagbase/tagbase-server/blob/main/services/fswatch/post.sh#L5 Note the--event Created --event MovedTo --event IsFile --event Updated
flags. Can someone suggest a method for invokingfswatch
only when the file (transferred by SFTP) has been fully written? Thanks in advance.