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.

opal.file_upload(opal, source, destination, all.files = TRUE)

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

Examples

if (FALSE) { 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) }