opalr (version 1.4.1)

opal.file_cp: Copy a file

Description

Copy a file or a folder to another location in the Opal file system.

Usage

opal.file_cp(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_download(), opal.file_ls(), opal.file_mkdir(), opal.file_mv(), opal.file_read(), opal.file_rm(), opal.file_upload(), opal.file_write(), opal.file()

Examples

Run this code
# NOT RUN {
o <- opal.login('administrator','password','https://opal-demo.obiba.org')
# copy a file to another folder
opal.file_cp(o, '/home/administrator/export/some-data.csv', '/home/userx/deliverables')
# copy recursively a folder to another folder
opal.file_cp(o, '/home/administrator/export', '/home/userx/deliverables')
opal.logout(o)
# }

Run the code above in your browser using DataLab