Copy a local file into the Sandbox.
remotePath must be an absolute path to a file in the Sandbox.
Parent directories are created if needed. The remote file is overwritten
if it already exists.
Copy a file from the Sandbox to a local path.
remotePath must be an absolute path to a file in the Sandbox.
Parent directories for localPath are created if needed. The local file
is overwritten if it already exists.
Create a new directory in the Sandbox.
remotePath must be an absolute path in the Sandbox.
When createParents is true (the default), any missing parent
directories are created and the call is idempotent (succeeds if the
directory already exists). When createParents is false, the immediate
parent must already exist and the path must not already exist.
Optionaloptions: { createParents?: boolean }Read a file from the Sandbox and return its contents as bytes.
remotePath must be an absolute path to a file in the Sandbox.
Read a file from the Sandbox and return its contents as a UTF-8 string.
remotePath must be an absolute path to a file in the Sandbox.
Remove a file or directory in the Sandbox.
remotePath must be an absolute path in the Sandbox. When remotePath
is a directory and recursive is false (the default), it is removed
only if empty. When recursive is true, the directory and all its
contents are removed. Recursive removal is not supported on all mounts —
CloudBucketMount does not support it.
Optionaloptions: { recursive?: boolean }Write binary content to a file in the Sandbox.
remotePath must be an absolute path to a file in the Sandbox.
Parent directories are created if needed. The remote file is overwritten
if it already exists.
Write UTF-8 text to a file in the Sandbox.
remotePath must be an absolute path to a file in the Sandbox.
Parent directories are created if needed. The remote file is overwritten
if it already exists.
Namespace for Sandbox filesystem APIs.