-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge upstream #112
base: master
Are you sure you want to change the base?
Merge upstream #112
Commits on Jan 10, 2020
-
ScanNow() causes the file watch loop to run once, and ensures all events have been posted before returning. It allows the caller to "synchronize" with the pending watcher events, so is useful for batch updating after it is known file events have probably occurred.
Configuration menu - View commit details
-
Copy full SHA for f76f19a - Browse repository at this point
Copy the full SHA f76f19aView commit details
Commits on Feb 7, 2020
-
Watcher now emits
Write
event for size only changeOn some file systems, multiple changes to the same file within the file system's mod time resolution would be missed. This issue can be ameliorated by triggering `Write` events if a size change is detected, even if no corresponding mod time change occurs. Changes to the file content without a change to the size or mod time will still go unnoticed.
Configuration menu - View commit details
-
Copy full SHA for fb21ff5 - Browse repository at this point
Copy the full SHA fb21ff5View commit details -
fix panic when file/dir is deleted
sometimes when a file/dir which is being watched is deleted a panic will occur. This appears to be because the is an assumption that if an error returns true for `IsNotExist()` that it should be castable to `os.PathError`, but this evidently is not always the case, causing a panic.
Configuration menu - View commit details
-
Copy full SHA for 43d937e - Browse repository at this point
Copy the full SHA 43d937eView commit details
Commits on Mar 8, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 0557e8c - Browse repository at this point
Copy the full SHA 0557e8cView commit details
Commits on Apr 28, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 8906a0b - Browse repository at this point
Copy the full SHA 8906a0bView commit details
Commits on Apr 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b3119d9 - Browse repository at this point
Copy the full SHA b3119d9View commit details
Commits on Aug 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6cdeab1 - Browse repository at this point
Copy the full SHA 6cdeab1View commit details -
Merge pull request #2 from tul/file_delete_panic_fix
fix panic when file/dir is deleted
Configuration menu - View commit details
-
Copy full SHA for 64eaac1 - Browse repository at this point
Copy the full SHA 64eaac1View commit details -
Merge pull request #3 from technoweenie/ignore-before-callback
skip ignored files before callbacks
Configuration menu - View commit details
-
Copy full SHA for fc405cd - Browse repository at this point
Copy the full SHA fc405cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9398209 - Browse repository at this point
Copy the full SHA 9398209View commit details -
Merge pull request #5 from tul/detect_size_only_change
Watcher now emits `Write` event for size only change
Configuration menu - View commit details
-
Copy full SHA for d08384c - Browse repository at this point
Copy the full SHA d08384cView commit details
Commits on Aug 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7bb0a6e - Browse repository at this point
Copy the full SHA 7bb0a6eView commit details
Commits on Aug 23, 2021
-
Fix race condtion with closing
When we close while waiting for the next periodic re-roll or ScanNow we previously would allow the loop to execute one last time, start a rescan, and then exit the Start() function when we got a <-w.close. However, when this happens and there's a changed files there's a 50% for each file we'll choose to process the <-evt file event first before the <-w.close! This is a huge problem if it's no longer safe to do so. This change simply exits the Start function (safely, closing all the channels as before) as soon as we receive a <-w.close
Configuration menu - View commit details
-
Copy full SHA for c09cfb0 - Browse repository at this point
Copy the full SHA c09cfb0View commit details