Copy a file or a folder to another location in the Opal file system.
See also
Other file functions:
opal.file(),
opal.file_download(),
opal.file_ls(),
opal.file_mkdir(),
opal.file_mkdir_tmp(),
opal.file_mv(),
opal.file_read(),
opal.file_rm(),
opal.file_unzip(),
opal.file_upload(),
opal.file_write()
Examples
if (FALSE) { # \dontrun{
o <- opal.login('administrator','password', url='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)
} # }