item_rename_files: Rename item attached files

Description Usage Arguments Examples

View source: R/item_rename_files.R

Description

Renames files attached to an SB item.

Usage

1
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

1
2
3
4
5
6
7
8
9
## 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 29, 2017, 7:40 p.m.