Files.delete: Delete file or folder

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/Files.r

Description

Deletes a directory or file in the File System.

Usage

1
Jobs.delete(fileService, path, quiet=TRUE)

Arguments

fileService

name of fileService (string), or object (dictionary) that defines a file service. A list of these kind of objects available to the user is returned by the function Files.getFileServices().

path

String defining the path (in the remote fileService) of the file or directory to be deleted, starting from the root volume level or data volume level. Examples: rootVolume/userVolumeOwner/userVolume/fileToBeDeleted.txt or dataVolume/fileToBeDeleted.txt

quiet

If set to FALSE, it will throw an error if the file does not exist. If set to TRUE. it will not throw an error.

Value

void

Author(s)

Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>

References

http://www.sciserver.org
http://apps.sciserver.org
http://apps.sciserver.org/dashboard/files
http://www.github.com/sciserver/SciScript-R

See Also

Files.getFileServices, Files.getFileServiceFromName, Files.move, Files.createDir, Files.upload, Files.download, Files.createUserVolume

Examples

1
fileServices = Files.getFileServices(); Files.delete(fileServices[[1]],"rootVolume/userVolumeOwner/userVolume/fileToBeDeleted.txt");

sciserver/SciScript-R documentation built on May 29, 2019, 3:45 p.m.