changeFileMetaData.Rd
Change File Entity metadata like the download as name.
changeFileMetaData(entity, downloadAs=NA, contentType=NA, forceVersion=TRUE, name=NA)
Synapse entity Id or object.
Specify filename to change the filename of a filehandle. Defaults to NA.
Specify content type to change the content type of a filehandle. Defaults to NA.
Indicates whether the method should increment the version of the object even if nothing has changed. Defaults to TRUE.
Specify filename to change the filename of the file. Defaults to NA.
Synapse Entity
if (FALSE) {
changeFileMetaData("syn123", downloadAs="index.html", contentType="text")
# Can be used to change the filename, the filename when the file is downloaded,
# or the file content-type without downloading
changeFileMetaData("syn123", downloadAs="my_new_downloadAs_name_file.txt", name="my_new_name_file.txt")
}