jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.06k stars 215 forks source link

New backend proposal: ProxyFS #196

Open billiegoose opened 6 years ago

billiegoose commented 6 years ago

I just had this idea as a way to implement the file-system watcher described in https://github.com/jvilk/BrowserFS/issues/163

We could have a backend that wrapped another file system and provided hooks so you could intercept any of the method calls and add additional logic. In this scenario, I would simply intercept write, mkdir, rmdir, rename, and unlink to easily create my own "file system watcher".

ProxyFS is meant to allude to JS Proxy objects, but other names I came up with first included HookFS, WatchFS, SpyFS, or InterceptorFS.

james-pre commented 8 months ago

Please use https://github.com/browser-fs/core/issues/9