Skip to content

How to watch path to file that doesn't exist yet? #7

@Boscop

Description

@Boscop

When I call .watch() with the path to a file that doesn't exist yet, I get

The system cannot find the file specified. (os error 2)

But I also want to get notified when the file is created (not just when it changes).
My code cannot assume that the file that is watched already exists.
Is there a way? :)


Btw, is there also a way to keep watching the path when the file is deleted, to get notified when it's recreated at the same path later?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions