Upload a file or a folder into the Opal file system. Creates the destination folder (and parents) when necessary. Hidden files and folders (with name starting with dot) can be excluded.
Arguments
- opal
Opal object.
- source
Path to the file in the local file system.
- destination
Path of the destination folder in the Opal file system. Folder (and parents) will be created if missing.
- all.files
When FALSE, upload only visible files (following Unix-style visibility, that is files whose name does not start with a dot). Default is TRUE.
See also
Other file functions:
opal.file(),
opal.file_cp(),
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_write()
Examples
if (FALSE) { # \dontrun{
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
# upload a file
opal.file_upload(o, 'some_data.csv', '/home/administrator')
# upload a folder
opal.file_upload(o, 'some_data', '/home/administrator')
opal.logout(o)
} # }