physfs icon indicating copy to clipboard operation
physfs copied to clipboard

File watcher plans

Open plekakis opened this issue 2 years ago • 2 comments

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

plekakis avatar May 29 '23 18:05 plekakis

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!

icculus avatar May 29 '23 19:05 icculus

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.

plekakis avatar May 29 '23 20:05 plekakis