mantaRm: Removes specified Manta object, optionally recursive, not...

Description Usage Arguments Value See Also Examples

View source: R/mantaRm.R

Description

Removes object. Specify absolute (e.g. ~~/stor/myobject.txt ) or relative path from the current Manta directory. Supports recursive removal of child contents objects and directories with r = TRUE. You can use mantaFind to prepare a list of absolute Manta pathnames to objects with detailed searching and filtering specifications and then use lapply(pathnamelist, mantaRm) to delete the items.

Usage

1
mantaRm(mantapath, r = FALSE, info = TRUE)

Arguments

mantapath

character, required. Not vectorized.

r,

logical optional. Set TRUE for recursive delete of all objects within all child subdirectories, and the directories.

info

logical. Set FALSE to suppress console messages.

Value

TRUE or FALSE depending on success of remove.

See Also

Other Directory: mantaGetwd; mantaMkdir; mantaRmdir; 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: 
data <- runif(100)
mantaDump("data")
mantaCat("dumpdata.R")
mantaRm("dumpdata.R")

## Make a hierarchical directory set, for removal:
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
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.