moveFile: move a file

Usage Arguments Examples

Usage

1
moveFile(fileId, parentId)

Arguments

fileId
parentId

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (fileId, parentId)
{
    myFile <- synGet(fileId, downloadFile = FALSE)
    myFile$properties$parentId <- parentId
    myFile <- synStore(myFile, forceVersion = F)
  }

Sage-Bionetworks/synapseUtilities documentation built on May 9, 2019, 12:15 p.m.