Skip to content

Commit

Permalink
Merge pull request #6882 from ipfs/fix/6878-mfs-docs
Browse files Browse the repository at this point in the history
Fix #6878: Improve MFS Cli documentation
  • Loading branch information
hsanjuan authored Feb 7, 2020
2 parents 962448c + effbc0a commit 8e9725f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion core/commands/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@ var FilesCmd = &cmds.Command{
Files is an API for manipulating IPFS objects as if they were a unix
filesystem.
The files facility interacts with MFS (Mutable File System). MFS acts as a
single, dynamic filesystem mount. MFS has a root CID which is transparently
updated when a change happens (and can be checked with "ipfs files stat /").
All files and folders within MFS are respected and will not be cleaned up
during garbage collections. MFS is independent from the list of pinned items
("ipfs pin ls"). Calls to "ipfs pin add" and "ipfs pin rm" will add and remove
pins independently of MFS. If MFS content that was
additionally pinned is removed by calling "ipfs files rm", it will still
remain pinned.
Content added with "ipfs add" (which by default also becomes pinned), is not
added to MFS. Any content can be put into MFS with the command "ipfs files cp
/ipfs/<cid> /some/path/".
NOTE:
Most of the subcommands of 'ipfs files' accept the '--flush' flag. It defaults
to true. Use caution when setting this flag to false. It will improve
Expand Down Expand Up @@ -762,7 +778,7 @@ stat' on the file or any of its ancestors.
if retErr == nil {
retErr = err
} else {
log.Error("files: error closing file mfs file descriptor", err)
flog.Error("files: error closing file mfs file descriptor", err)
}
}
}()
Expand Down

0 comments on commit 8e9725f

Please sign in to comment.