Skip to contents

Renames files attached to an SB item.

Usage

item_rename_files(sb_id, names, new_names, ...)

Arguments

sb_id

An sbitem object or a character ScienceBase ID corresponding to the item

names

List of names of files to rename

new_names

List of new file names to use

...

Additional parameters are passed on to GET, POST, HEAD, PUT.

Examples

if (FALSE) {

names = c('file1.txt', 'file2.txt')
new_names = c('newname1.txt', 'newname2.txt')

item_rename_files('sbid', names, new_names)

}