An open API service indexing awesome lists of open source software.

https://github.com/digitaltvguy/fswatch-Filesystem-Events-Watchfolder-Shell-Script

shell script for fswatch which checks watchfolder for growing files via event type flags and delivers via scp to destination
https://github.com/digitaltvguy/fswatch-Filesystem-Events-Watchfolder-Shell-Script

Last synced: 4 months ago
JSON representation

shell script for fswatch which checks watchfolder for growing files via event type flags and delivers via scp to destination

Awesome Lists containing this project

README

        

# fswatch Filesystem Events WatchFolder Shell Script

** A "file-system events" script built to avoid scanning a folder
Using operating system specific filesystem events it also monitors for "growing files" before triggering an action**

It looks for to the event names "Updated", "Renamed", "MovedTo" so files don't trigger until ready.

"Renamed" event accepts file moves into the watch folder

"Updated" accepts a “file-closed” event after a file copy into the watch folder occurs

"MovedTo" event is operating system specific to Linux and identifies file moves into the watchfolder

If a file is removed from the watch folder, the script checks for this
false event by examining the folder for the same file. If the file doesn’t exist,
the event is ignored.

** If you are using MacOS, there is "Notification Center" support for files added to the watchfolder and files that have completed their transfer to the final destination **

** MUST CONFIGURE LINES WITHIN CONFIGURATION SECTION **