import { FileSystem } from "https://deno.land/x/gauntlet@v0.0.9/mod.ts";
Methods
private
_exists(existingPath: string)Low-level path existence checking implementation, given path must be absolute.
Low-level folder creation implementation, given path must be absolute and valid, implying all parent folders exist.
private
_mkdir(existingPath: string)Low-level folder creation implementation, given path must be absolute and valid, implying all parent folders exist.
Low-level item moving implementation, destination path must be absolute and not be already registered in contents.
cd(path: string): void
clear()
cwd(): string
exists(path: string): Promise<boolean>
existsSync(path: string)
getChildNames(path: string): string[]
getChildPaths(path: string): string[]
getContents(): Item<T>[]
getPaths(): string[]
getRoot(): string[]
lstat(givenPath: string)
lstatSync(givenPath: string)
mkdir(givenPath: string)
mkdirSync(givenPath: string)
move(from: string, to: string)
moveSync(from: string, to: string)
read(path: string)
readFile(path: string)
readFileSync(path: string)
readSync(path: string)
readTextFile(path: string)
readTextFileSync(path: string): string
remove(path: string)
removeSync(givenPath: string)
rename(from: string, to: string)
renameSync(from: string, to: string)
Rename synchronously a file or a directory. This method is almost the same
as moveSync
except the destination cannot be an existing entry,
nor the root folder.
resolve(p: string)
Given an absolute path, split it and returns an iterator, for each folder. This utility doesn't check if these folders actually exist.
walk(givenPath: string)
walkSync(givenPath: string)
watch(paths: string | string[]): AsyncPushIterator<FsEvent>
writeFile(path: string, data: Uint8Array)
writeFileSync(path: string, data: Uint8Array)
writeTextFile(path: string, data: string)
writeTextFileSync(path: string, data: string)