Interface DirChangeOptions

Directory changes tracking options.

Hierarchy

  • DirChangeOptions

Methods

  • Checks whether the file should be tracked.

    All files are tracked by default.

    Returns

    true if the file should be tracked, or false otherwise.

    Parameters

    • this: void
    • entry: Dirent

      A file entry to check.

    Returns boolean

  • Checks whether a new file is modified.

    If a file entry is not modified since already reported one, it won't be reported as added.

    Compares file modification times by default.

    Parameters

    • this: void
    • newEntry: DirChangeEntry

      The tracked file entry to check.

    • oldEntry: DirChangeEntry

      The already reported file entry with the same name.

    Returns boolean

Generated using TypeDoc