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, ...)

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

## 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)


USGS-R/sbtools documentation built on June 1, 2024, 9:47 p.m.