Package-level declarations

Types

Link copied to clipboard

Create a directory (and missing parents) inside the sandbox.

Link copied to clipboard

Sandboxed multiplatform file-system gateway.

Link copied to clipboard

Find files whose relative paths match a glob pattern.

Link copied to clipboard

Find files whose contents match a regular expression.

Link copied to clipboard

Find every line in a file whose content matches a regex.

Link copied to clipboard
data class LineMatch(val lineNumber: Int, val content: String)

One line that matched a regex search inside a file.

Link copied to clipboard

Recursively list every regular file under a directory.

Link copied to clipboard

List files (non-recursive) in a sandbox-relative directory.

Link copied to clipboard
class OkioFilesystemGateway(fileSystem: FileSystem, basePath: String) : FilesystemGateway

FilesystemGateway implementation backed by okio.FileSystem.

Link copied to clipboard

Read the entire UTF-8 text contents of a file.

Link copied to clipboard

Thrown when a sandboxed path attempts to escape its base directory.

Link copied to clipboard

Overwrite a file in the sandbox with new UTF-8 content.

Functions

Link copied to clipboard

Factory for the full set of file tools bound to a single FilesystemGateway.