import { Sandbox } from "https://deno.land/x/sandbox@v1.1.0/sandbox.ts";
Methods
chmod(path: string, mode: number): Promise<void>
chown(): Promise<void>
path: string,
uid: number | null,
gid: number | null,
copyFile(fromPath: string, toPath: string): Promise<void>
create(path: string): Promise<Deno.FsFile>
dispose(): void
exists(filePath: string): Promise<boolean>
Test whether or not the given path exists in a sandbox directory by checking with the file system
link(oldpath: string, newpath: string): Promise<void>
lstat(path: string): Promise<Deno.FileInfo>
makeTempDir(options?: Omit<Deno.MakeTempOptions, "dir">): Promise<string>
makeTempFile(options?: Omit<Deno.MakeTempOptions, "dir">): Promise<string>
mkdir(path: string, options?: Deno.MkdirOptions): Promise<void>
open(path: string, options?: Deno.OpenOptions): Promise<Deno.FsFile>
readDir(path: string): AsyncIterable<Deno.DirEntry>
readFile(path: string): Promise<Uint8Array>
readLink(path: string): Promise<string>
readTextFile(path: string): Promise<string>
realPath(path: string): Promise<string>
remove(path: string, options?: Deno.RemoveOptions): Promise<void>
rename(oldpath: string, newpath: string): Promise<void>
resolve(...paths: string[]): string
Resolves paths
in a sandbox directory to an absolute path
stat(path: string): Promise<Deno.FileInfo>
symlink(): Promise<void>
writeFile(): Promise<void>
writeTextFile(): Promise<void>