copyFileHandles: copyFileHandles

copyFileHandlesR Documentation

copyFileHandles

Description

Given a list of fileHandle Objects, copy the fileHandles

Usage

copyFileHandles(fileHandles, associateObjectTypes, associateObjectIds, contentTypes, fileNames)

Arguments

fileHandles

List of fileHandle Ids or Objects

associateObjectTypes

List of associated object types: FileEntity, TableEntity, WikiAttachment, UserProfileAttachment, MessageAttachment, TeamAttachment, SubmissionAttachment, VerificationSubmission (Must be the same length as fileHandles)

associateObjectIds

List of associated object Ids: If copying a file, the objectId is the synapse id, and if copying a wiki attachment, the object id is the wiki subpage id. (Must be the same length as fileHandles)

contentTypes

List of content types (Can change a filetype of a filehandle).

fileNames

List of filenames (Can change a filename of a filehandle).

Value

List of batch filehandle copy results, can include failureCodes: UNAUTHORIZED and NOT_FOUND

Examples

  ## Not run: 
    copyFileHandles(list('19507670'), list('FileEntity'), list('syn11935399'), list('text'), list('newFile'))
  
## End(Not run)

Sage-Bionetworks/synapserutils documentation built on Feb. 12, 2024, 10:31 a.m.