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

_ #181

Closed
ghost opened this issue Jul 15, 2017 · 2 comments
Closed

_ #181

ghost opened this issue Jul 15, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 15, 2017

_

@jvilk
Copy link
Owner

jvilk commented Jul 16, 2017

Not sure I grok 100% what you are trying to accomplish, but this should work as a polyfill for Node's file system module with the following caveats:

  • Synchronous API calls are not available on some file systems. You can make any asynchronous file system synchronous with AsyncMirrorFS, with the caveat that it needs to asynchronously preload all of the files in the filesystem into a synchronous file system before you can use it (typically the InMemory file system).
  • Read/write streams are currently not supported.
  • Symlinks are not supported on most file systems, although that could change.
  • User/group permissions are not supported on many file systems.

Does that answer your question?

@jvilk jvilk closed this as completed Jul 16, 2017
@jvilk
Copy link
Owner

jvilk commented Jul 16, 2017

Closing for now since I think that's what you were asking. There's a summary of all available file system backends in the documentation. Some are data stores (localStorage, IndexedDB, Dropbox, etc), while others are meta (MountableFileSystem lets you mount file systems into a hierarchy, AsyncMirrorFS is what I described in the previous comment, etc).

@ghost ghost changed the title Will this work as a drop in replacement for the filesystem in other node modules as well? _ Aug 15, 2022
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

1 participant