physfs
physfs copied to clipboard
File watcher plans
Is there a plan on adding support for watching a directory for changes? Ideally via native file watch API.
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!
Thanks for looking into this, I hope other people will find it useful as well. The main driving force behind it is to:
- Not write a filewatcher which would require additional interop with converting from physical <-> virtual filenames and
- 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.