Replace individual file and directory scan with inotifywait or similar #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current approach which uses a simple directory tree walker to scan files and directories for changes take forever, it also puts an insane load on the harddrives I use while the scan is running. We should investigate if a tool like
inotifywaitcan be used instead.We can limit the number of active "listeners" by waiting for the first write, modify event to a target directory. The target directory will be marked as modified in the configuration file, the listener will be removed, and the directory will be archived when the next upload cycle begins. We don't need to know which or how many files have been modified, all we care about is that a file was modified since the last run.