Skip to content

[Feature] Provide an enumeration of existing files at watch creation #339

@rrichardson

Description

@rrichardson

I have a use case where I want to process all files in a directory at startup time, then process any new files that are added during runtime. It would simplify my code quite a bit if I could use the same event stream for both.

From an API perspective, this would be a simple, non-breaking change. We could add an existing enumeration to EventKind, (something like Existing) and also add a new enumeration to Config (maybe ListExistingFiles(bool) )

If this is desirable, I am happy to provide an implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions