Description Usage Arguments See Also Examples
This sets the current working directory in Manta. Supports
~~
expansion to $MANTA_USER
setting, i.e. for
my account ~~/stor
expands to /cwvhogue/stor
.
There are 4 top level Manta subdirectories:
~~/stor
Your private storage.
~~/public
Your public storage.
~~/jobs
Your job archive.
~~/reports
Your account report information.
Specify the full path (absolute) or start from current
working directory (relative). All mantaRSDK functions
assume unprefixed filenames are in the current working
directory on Manta. To move UP one directory at a time use
".."
but note that "../.."
forms are NOT
supported as there are no parent directory ".."
object links on Manta. Returns FALSE if directory specified
incorrectory or if the directory does not exist. The
current working directory is stored internally in
mantaRSDK
on your local system and is not saved.
between sessions. It initializes to the root directory of
private Manta storage: ~~/stor
.
1 | mantaSetwd(mantapath)
|
mantapath |
character, required. Absolute or relative subdirectory name to set to. |
Other Directory: mantaGetwd
;
mantaMkdir
; mantaRmdir
;
mantaRm
; mantaSetwd.public
;
mantaSetwd.reports
;
mantaSetwd.stor
; mantaSnapln
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
## Show current Manta working directory
mantaGetwd()
## Save current subdirectory
mantaGetwd() -> tempdir
## Absolute path with ~~ expansion
mantaSetwd("~~/public")
mantaGetwd()
## Dotted forms for 4 top level subdirectories:
mantaSetwd.public()
mantaGetwd()
mantaLs.l()
mantaSetwd.stor()
mantaGetwd()
mantaLs.l()
mantaSetwd.jobs()
mantaGetwd()
mantaLs.l()
mantaSetwd.reports()
mantaGetwd()
mantaLs.l()
## Restore saved subdirectory
mantaSetwd(tempdir)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.