xyncro / memfs Goto Github PK
View Code? Open in Web Editor NEWAn in-memory filesystem-like structure, with parameterised directory and file nodes
License: MIT License
An in-memory filesystem-like structure, with parameterised directory and file nodes
License: MIT License
Consider an alternative API surface which unifies all of the get/find/create options in to a single function which takes arguments expressing what to do in terms of intermediate and endpoint creation during path traversal. This could replace all of the get
, get_path
, etc. options plus any creation options.
We need ways to read and write the data attached to each node. Implement this.
Whether this is identical to renaming, or otherwise, I'm not entirely sure yet - needs a little think about the API surface, but broadly speaking, being able to move a thing somewhere else is needed!
As titled, need to be able to remove/remove_all.
At the moment, paths passed to functions are treated extremely naively (no support for root dirs, parent/child traversal, etc.)
This should be improved, and we probably want to pull some of that code outside of the directory methods themselves, especially as we're likely to want to include some default file system traversal functions too.
At the moment, we have no creation functions! Implement these, for both local and path scopes.
Crate documentation needs to be done, this is a tracking issue for that. Not going to invest time in that until the API is reasonably stable and complete and it's ready for a publish for a working version to crates.io. Also needs battle testing as part of internal projects first!
We need a consistent approach to naming for API calls, we have more available and more
contextual available than simply mirroring the std::fs API, which is really a thin layer
on a *nix-like file system.
Something like...
count
count_dir
count_file
get
get_dir
get_file
get_path
get_path_dir
get_path_file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.