-
-
Save whyrusleeping/296323e370a1af67ecc3 to your computer and use it in GitHub Desktop.
ipnsfs api mockup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipfs mfs | |
Manipulate a filesystem rooted on an ipfs object | |
root options: | |
--session=name The name of the session to operate on | |
ipfs mfs # show mounted filesystems | |
ipfs mfs create name [... args] # create a new filesystem | |
ipfs mfs close name # close and clean up a filesystem | |
ipfs mfs put /path/to/point <hash> # this is basically the 'save' command from earlier | |
ipfs mfs rm /path/to/object/to/remove | |
ipfs mfs mv /path/to/src /path/to/dst | |
ipfs mfs ls /path/to/list [-l] | |
ipfs mfs write [offset] /path/to/file data #can either write data from a file, or pipe to stdin | |
ipfs mfs read [offset] /path/to/file | |
ipfs mfs mkdir /path/to/dir/to/make | |
ipfs mfs stat /path/to/file | |
WIP: | |
ipfs nsfs [lock/unlock] /path/to/lockee |
maybe mfs
for mutable filesystem instead of nsfs
if i'm making it more generic than ipns
i like mfs
. or kfs
(key-fs, as it's based on PKI).
well, its not necessarily based on pki anymore. all this interface really does it manage a filesystem based under an object and propogate updates via a generic 'publish' call. That publish could be just writing the hash to a file on disk, or it could be publishing to an ipns entry.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
could also call rename
put
toimport