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

File watcher plans #60

Open
plekakis opened this issue May 29, 2023 · 2 comments
Open

File watcher plans #60

plekakis opened this issue May 29, 2023 · 2 comments

Comments

@plekakis
Copy link

Is there a plan on adding support for watching a directory for changes? Ideally via native file watch API.

@icculus
Copy link
Owner

icculus commented May 29, 2023

That...is an interesting idea. I don't have plans for it atm, but let me look into how this works on various platforms and see if this makes sense!

@plekakis
Copy link
Author

Thanks for looking into this, I hope other people will find it useful as well.
The main driving force behind it is to:

  1. Not write a filewatcher which would require additional interop with converting from physical <-> virtual filenames and
  2. Being able to watch virtual directories would give additional flexibility.

Consider for instance a hot-reload system which watches the asset directory and on file change triggers a recompilation of that asset. I'm sure there's other example use cases.

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