Skip to content
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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Merge upstream #112

wants to merge 13 commits into from

Commits on Jan 10, 2020

  1. added ScanNow()

    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.
    tul committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    f76f19a View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2020

  1. Watcher now emits Write event for size only change

    On 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.
    tul committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    fb21ff5 View commit details
    Browse the repository at this point in the history
  2. 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.
    tul committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    43d937e View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2020

  1. Preassign map size

    qshuai committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    0557e8c View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2020

  1. Configuration menu
    Copy the full SHA
    8906a0b View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2021

  1. adding go.mod file

    luthermonson committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    b3119d9 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. Merge pull request #1 from tul/scan_now

    added ScanNow()
    2shortplanks authored Aug 18, 2021
    Configuration menu
    Copy the full SHA
    6cdeab1 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2 from tul/file_delete_panic_fix

    fix panic when file/dir is deleted
    2shortplanks authored Aug 18, 2021
    Configuration menu
    Copy the full SHA
    64eaac1 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3 from technoweenie/ignore-before-callback

    skip ignored files before callbacks
    2shortplanks authored Aug 18, 2021
    Configuration menu
    Copy the full SHA
    fc405cd View commit details
    Browse the repository at this point in the history
  4. Merge pull request #4 from qshuai/master

    Preassign map size
    2shortplanks authored Aug 18, 2021
    Configuration menu
    Copy the full SHA
    9398209 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5 from tul/detect_size_only_change

    Watcher now emits `Write` event for size only change
    2shortplanks authored Aug 18, 2021
    Configuration menu
    Copy the full SHA
    d08384c View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2021

  1. Merge pull request #6 from luthermonson/gomod

    adding go.mod file
    2shortplanks authored Aug 19, 2021
    Configuration menu
    Copy the full SHA
    7bb0a6e View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2021

  1. 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
    2shortplanks committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    c09cfb0 View commit details
    Browse the repository at this point in the history