When performing an operation on a WebFS filesystem, the root config must always be provided.
On the command line, this is done using the --root
or -r
flag.
In practice this usually lookes something like this:
$ webfs -r ./path/to/webfs_root.json ls
Adds files to WebFS.
dst
is a path within WebFS.src
is assumed to be a file in the local filesystem. URLs may also eventually be supported.
Like UNIX's ls
, but within the WebFS filesystem.
Lists the paths which are children of path
Removes a file or directory.
This is like rm -rf
.
Edit a file in WebFS using $EDITOR
.
Defaults to vim
if $EDITOR
is not set.
This is useful for configuring a subvolume in a *.webfs
file within the filesystem.
Creates all directories along path.
Similar to mkdir -p <path>
.
Serves files over HTTP.
Serves files ovver NFS.
Mounts a fuse filesystem at path.