Copies a file or directory. Runs cp -r in the sandbox through
SandboxProcess.exec, then SandboxProcess.waits for it, so
cp's rules apply, such as copying into a destination that is an
existing directory.
Throws SandboxFileSystemCopyError if the copy fails, and SandboxProcessWaitTimeoutError if it outlasts the timeout, which does not stop it.
Finds files and directories by name under a directory.
Searches the contents of files under a directory for text.
Lists a directory's files and subdirectories, one level deep.
Reads a file as bytes.
Removes a file or directory.
Yields changes in a directory as they happen, until iteration ends or the signal aborts. Only the directory's direct entries are watched unless SandboxFileSystemWatchRequest.recursive is set.
Writes a text file, creating it or replacing its content. Content over 5MB is uploaded in 5MB parts through the multipart upload endpoints, at most 2 parts at a time per sandbox.
Writes a file from bytes, creating it or replacing its content. Content over 5MB is uploaded in 5MB parts through the multipart upload endpoints, at most 2 parts at a time per sandbox.
Writes several text files under a directory in one call, creating or replacing each.
Files and directories in a sandbox. Relative paths are resolved against the sandbox's working directory.