Description Usage Arguments Examples
Moves a file to a new location on Synapse and creates a link where the file used to be
1 | moveSingleFile(synId, newParentId)
|
synId |
the Synapse ID of the file to be moved. |
newParentId |
the Synapse ID of the new parent folder or project where the file will be moved to. |
1 2 3 4 5 6 7 8 9 10 11 12 13 | ##---- 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 (synId, newParentId)
{
foo <- synGet(synId, downloadFile = F)
oldParentId <- synGetProperties(foo)$parentId
fileName <- synGetProperties(foo)$name
moveFile(synId, newParentId)
makeLink(synId, oldParentId, linkName = fileName)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.