Object.get_or_upload_file {solvebio} | R Documentation |
Object.get_or_upload_file
Description
Upload a local file to a vault on SolveBio only if it does not yet exist (by name, at the provided path). The vault path provided is the parent directory for uploaded file. Accepts the same arguments as 'Object.upload_file'.
Usage
Object.get_or_upload_file(
local_path,
vault_id,
vault_path,
filename,
env = solvebio:::.solveEnv
)
Arguments
local_path |
The path to the local file |
vault_id |
The SolveBio vault ID |
vault_path |
The remote path in the vault |
filename |
(optional) The filename for the uploaded file in the vault (default: the basename of the local_path) |
env |
(optional) Custom client environment. |
References
Examples
## Not run:
Object.get_or_upload_file("my_file.json.gz", vault$id, "/parent/directory/")
## End(Not run)
[Package solvebio version 2.14.0 Index]