item_rename_files: Rename item attached files

View source: R/item_rename_files.R

item_rename_filesR Documentation

Rename item attached files

Description

Renames files attached to an SB item.

Usage

item_rename_files(sb_id, names, new_names, ..., session = current_session())

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, or DELETE

session

Session object from authenticate_sb. Defaults to anonymous or last authenticated session

Examples

## Not run: 

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

item_rename_files('sbid', names, new_names)


## End(Not run)


sbtools documentation built on May 1, 2023, 1:07 a.m.