This will change the CLIs tool notion of the CWD. Whether this succeeds depends on the --template we are operating under. If template=ldp, then this will
--force Do no checking of the acl:type on the container.
cd $HOME
mkdir foo
cp file://./bar.jpg foo/bar
cd foo/bar # Fails ./foo/bar is not an ldp:Container
cd -f foo/bar # This is OK. Good luck!
mkdir
The mkdir command allows one to create and ldp:Container. By default, these are created as ldp:BasicContainer, but can also be used to create ldp:DirectContainer and 'ldp:IndirectContainer`
vorpal.command('mkdir <fpath>')
.option('-h --hasMemberRelation <has_member>','Specify the predicate to cd into.')
.option('-i --isMember <is_member>','Specify the type of object to cd into.')
.option('
.option('-p --put <triples>,'Specify additional triples')
.option(-r --rdf <filename>,'Specity addtional triples as file (- = stdin)'
Basic Container
For basic Containers mkdir is equivalent to a put command. If the
>mkdir foo/bar/baz
# Equivalent to
>put -t='<> a ldp:BasicContainer' foo/bar/baz
Directory commands
Although ldp uses a
rm [dirname]
The rm commands removes either a directory or a file.
-r | --recursive
No option. Therm
command will remove any container in system recursively. This option has no effect.-f | --force
Also removes the fcr://tombstone.This is interesting, I don't know what happens to the tombstones of the other files in a recursive deletion.
pwd
Echos the current working directory for the cli.
cd dir
This will change the CLIs tool notion of the CWD. Whether this succeeds depends on the
--template
we are operating under. Iftemplate=ldp
, then this will--force
Do no checking of the acl:type on the container.mkdir
The mkdir command allows one to create and
ldp:Container
. By default, these are created asldp:BasicContainer
, but can also be used to createldp:DirectContainer
and 'ldp:IndirectContainer`Basic Container
For basic Containers mkdir is equivalent to a put command. If the