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
- Host: GitHub
- URL: https://github.com/digitaltvguy/fswatch-Filesystem-Events-Watchfolder-Shell-Script
- Owner: digitaltvguy
- Created: 2017-07-29T18:04:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-10T17:31:39.000Z (over 7 years ago)
- Last Synced: 2024-08-01T13:38:13.873Z (7 months ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 **