Description Usage Arguments Value Author(s) References See Also Examples
Uploads data or a local file into a path defined in the file system.
1 |
fileService |
name of fileService (string), or object (list) that defines a file service. A list of these kind of objects available to the user is returned by the function Files.getFileServices(). |
path |
path (in the remote file service) to the destination file (string), starting from the root volume level or data volume level. Examples: rootVolume/userVolumeOwner/userVolume/destinationFile.txt or dataVolume/destinationFile.txt |
data |
string containing data to be uploaded, in case localFilePath is not set. |
localFilePath |
path to a local file to be uploaded (string) |
quiet |
If set to FALSE, it will throw an error if the file already exists. If set to TRUE. it will not throw an error. |
void
Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://apps.sciserver.org
http://apps.sciserver.org/dashboard/files
http://www.github.com/sciserver/SciScript-R
Files.getFileServices
, Files.getFileServiceFromName
,
Files.delete
, Files.createDir
,
Files.download
, Files.dirList
, Files.createUserVolume
1 | fileServices = Files.getFileServices(); Files.upload(fileServices[0], "myRootVolume/myUserVolume/persistent/myUploadedFile.txt", data="#ID,Column1,Column2\n1,4.5,5.5")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.