opal.file_mv: Move and/or rename a file

Description Usage Arguments See Also Examples

View source: R/opal.file.R

Description

Move and/or rename a file or a folder in the Opal file system.

Usage

1
opal.file_mv(opal, source, destination)

Arguments

opal

Opal object.

source

Path to the file in the Opal file system.

destination

New path to the file in the Opal file system.

See Also

Other file functions: opal.file_cp(), opal.file_download(), opal.file_ls(), opal.file_mkdir_tmp(), opal.file_mkdir(), opal.file_read(), opal.file_rm(), opal.file_unzip(), opal.file_upload(), opal.file_write(), opal.file()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
# move a file to another folder
opal.file_mv(o, '/home/administrator/export/some-data.csv', '/home/userx/deliverables')
# rename a file
opal.file_mv(o, '/home/administrator/export/some-data-20170123.csv', 
                '/home/administrator/export/some-data.csv')
# move and rename a file
opal.file_mv(o, '/home/administrator/export/some-data-20170123.csv', 
                '/home/userx/deliverables/some-data.csv')
opal.logout(o)

## End(Not run)

opalr documentation built on Oct. 26, 2021, 5:06 p.m.