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

Feature request: Support watching non-existent files/directories #306

Open
nocnokneo opened this issue Oct 18, 2024 · 1 comment
Open

Feature request: Support watching non-existent files/directories #306

nocnokneo opened this issue Oct 18, 2024 · 1 comment

Comments

@nocnokneo
Copy link

Instead of making the user jump through all the hoops of monitoring the parent directory of the missing file and filtering change notifications for the one specific missing file, just do this automatically or at least have an option to do this automatically.

@samuelcolvin
Copy link
Owner

I don't think this is possible since the underlying OS watching semantics need a directory to exist.

I guess we could add a layer filtering on top in watchfiles, but I've never wanted this.

Happy to review a PR, but since it's already possible and doesn't seem that common a demand, the code would need to be pretty simple for me to accept it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants