import { VFS } from "https://deno.land/x/sptaki@1.2.0/utils/VFS.d.ts";
Constructors
new
VFS(asyncQueue: IAsyncQueue)Properties
protected
asyncQueue: IAsyncQueuereaddirPromisify: (path: fs.PathLike, options?: BufferEncoding | { encoding: BufferEncoding; withFileTypes?: false; }) => Promise<string[]>
readFilePromisify: (path: fs.PathLike) => Promise<Buffer>
Methods
protected
checkFileSync(filepath: any): booleanprotected
lockFileSync(filepath: any): () => voidprotected
unlockFileSync(filepath: any): voidcopyAsync(filepath: fs.PathLike, target: fs.PathLike): Promise<void>
copyDir(): void
filepath: string,
target: string,
fileExtensions?: string | string[],
copyDirAsync(): Promise<void>
filepath: string,
target: string,
fileExtensions: string | string[],
copyFile(filepath: fs.PathLike, target: fs.PathLike): void
createDir(filepath: string): void
createDirAsync(filepath: string): Promise<void>
exists(filepath: fs.PathLike): boolean
existsAsync(filepath: fs.PathLike): Promise<boolean>
getDirs(filepath: string): string[]
getDirsAsync(filepath: string): Promise<string[]>
getFileExtension(filepath: string): string
getFiles(filepath: string): string[]
getFilesAsync(filepath: string): Promise<string[]>
getFilesOfType(): string[]
directory: string,
fileType: string,
files?: string[],
minifyAllJsonInDirRecursive(filepath: string): Promise<void>
minifyAllJsonInDirRecursiveAsync(filepath: string): Promise<void>
readFile(...args: Parameters<fs.readFileSync>): string
readFileAsync(path: fs.PathLike): Promise<string>
removeDir(filepath: string): void
removeDirAsync(filepath: string): Promise<void>
removeFile(filepath: string): void
removeFileAsync(filepath: string): Promise<void>
rename(oldPath: string, newPath: string): void
renameAsync(oldPath: string, newPath: string): Promise<void>
stripExtension(filepath: string): string
writeFile(): void
filepath: any,
data?: string,
append?: boolean,
atomic?: boolean,
writeFileAsync(): Promise<void>
filepath: any,
data?: string,
append?: boolean,
atomic?: boolean,