mantaExists: Tests to see if a Manta object or subdirectory exists.

Description Usage Arguments Value See Also Examples

View source: R/mantaExists.R

Description

Like a Unix stat command. Does not download object contents.

Usage

1
mantaExists(mantapath, d = FALSE)

Arguments

mantapath

character, required. A full path specifying a Manta object or directory, or the name of an object/subdir in the current Manta working directory.

d

logical. Set TRUE to confirm that entity specified in mantapath exists and is a directory.

Value

logical.

See Also

Other mantaLs: mantaLs.du; mantaLs.l; mantaLs.n; mantaLs.paths; mantaLs.url; mantaLs

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
data <- runif(100)
mantaDump("data")
mantaExists("dumpdata.R")
mantaRm("dumpdata.R")
mantaExists("dumpdata.R")
mantaMkdir("testsubidrectory")
mantaExists("testsubdirectory", d = TRUE)
mantaRmdir("testsubdirectory")
mantaExists("testsubdirectory", d = TRUE)
files <- c("file1", "file2", "file3")
sapply(files, mantaExists)

## End(Not run)

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