mantaMkdir: Makes a Manta subdirectory, optionally with parent...

Description Usage Arguments Value See Also Examples

View source: R/mantaMkdir.R

Description

Makes subdirectory on Manta. Specify absolute (e.g. ~~/stor ) or relative path from the current Manta directory. Supports creation of parent directories with p = TRUE. New directories can be created in ~~/stor your private space or ~~/public a publically accessible HTTPS directory.

Usage

1
mantaMkdir(mantapath, p = FALSE, info = TRUE)

Arguments

mantapath

character, required. Path or name of new subdirectory to create. Not vectorized.

p

logical, optional. Make all the parent directories too.

info

logical. Set FALSE to suppress console messages.

Value

TRUE or FALSE depending on success of upload.

See Also

mantaRmdir

Other Directory: mantaGetwd; mantaRmdir; mantaRm; mantaSetwd.public; mantaSetwd.reports; mantaSetwd.stor; mantaSetwd; mantaSnapln

Examples

 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
26
27
28
29
30
31
## Not run: 
## Make absolute path subdirectory
mantaMkdir("~~/stor/testdirectory")
mantaLs.l("~~/stor")
mantaRmdir("~~/stor/testdirectory")

## Make with parent directories,
mantaGetwd() -> tempdir
mantaMkdir("~~/stor/a_test/b_test/c_test", p = TRUE)
mantaSetwd("~~/stor/a_test/b_test/c_test")
mantaMkdir("d_test")   # Relative path
data <- runif(100)
mantaDump("data")
mantaSetwd("..")
mantaDump("data")
mantaSetwd("..")
mantaDump("data")
mantaLs.l()
mantaFind()
## Recursive Rm Subdirectory Contents
mantaSetwd.stor()
mantaRm("~~/stor/a_test", r = TRUE)
mantaSetwd("~~/stor/a_test")
mantaLs.l()
mantaFind()
mantaSetwd.stor()
mantaRmdir("~~/stor/a_test")
mantaLs.l("~~/stor")
mantaSetwd(tempdir)

## End(Not run)

joyent/mantaRSDK documentation built on May 19, 2019, 10:43 p.m.