powered by
Renames files attached to an SB item.
item_rename_files(sb_id, names, new_names, ...)
An sbitem object or a character ScienceBase ID corresponding to the item
sbitem
List of names of files to rename
List of new file names to use
Additional parameters are passed on to GET, POST, HEAD, PUT.
GET
POST
HEAD
PUT
if (FALSE) { names = c('file1.txt', 'file2.txt') new_names = c('newname1.txt', 'newname2.txt') item_rename_files('sbid', names, new_names) }
Run the code above in your browser using DataLab