import { TransactionalFileSystem } from "https://dotland.deno.dev/x/ts_morph@17.0.1/common/mod.ts";
FileSystemHost wrapper that allows transactionally queuing operations to the file system.
Methods
clearDirectoryImmediately(dirPath: StandardizedFilePath): Promise<void>
Recreates a directory on the underlying file system asynchronously.
clearDirectoryImmediatelySync(dirPath: StandardizedFilePath): void
Recreates a directory on the underlying file system synchronously.
copyDirectoryImmediately(srcDirPath: StandardizedFilePath, destDirPath: StandardizedFilePath): Promise<void>
copyDirectoryImmediatelySync(srcDirPath: StandardizedFilePath, destDirPath: StandardizedFilePath): void
deleteDirectoryImmediately(dirPath: StandardizedFilePath): Promise<void>
deleteDirectoryImmediatelySync(dirPath: StandardizedFilePath): void
deleteFileImmediately(filePath: StandardizedFilePath): Promise<void>
deleteFileImmediatelySync(filePath: StandardizedFilePath): void
directoryExistsSync(dirPath: StandardizedFilePath): boolean
fileExists(filePath: StandardizedFilePath): boolean | Promise<boolean>
fileExistsSync(filePath: StandardizedFilePath): boolean
flush(): Promise<void>
flushSync(): void
getDirectories(dirPath: StandardizedFilePath): StandardizedFilePath[]
getStandardizedAbsolutePath(fileOrDirPath: string, relativeBase?: string): StandardizedFilePath
glob(patterns: ReadonlyArray<string>): AsyncGenerator<StandardizedFilePath, void, unknown>
globSync(patterns: ReadonlyArray<string>): Generator<StandardizedFilePath, void, unknown>
moveDirectoryImmediately(srcDirPath: StandardizedFilePath, destDirPath: StandardizedFilePath): Promise<void>
moveDirectoryImmediatelySync(srcDirPath: StandardizedFilePath, destDirPath: StandardizedFilePath): void
moveFileImmediately(): Promise<void>
moveFileImmediatelySync(): void
queueCopyDirectory(srcPath: StandardizedFilePath, destPath: StandardizedFilePath): void
queueDirectoryDelete(dirPath: StandardizedFilePath): void
queueFileDelete(filePath: StandardizedFilePath): void
queueMkdir(dirPath: StandardizedFilePath): void
queueMoveDirectory(srcPath: StandardizedFilePath, destPath: StandardizedFilePath): void
readDirSync(dirPath: StandardizedFilePath): DirEntry[]
readFile(filePath: StandardizedFilePath, encoding: string | undefined): Promise<string>
readFileIfExists(filePath: StandardizedFilePath, encoding: string | undefined): Promise<string | undefined>
readFileIfExistsSync(filePath: StandardizedFilePath, encoding: string | undefined): string | undefined
readFileOrNotExists(filePath: StandardizedFilePath, encoding: string): false | Promise<string | false>
readFileOrNotExistsSync(filePath: StandardizedFilePath, encoding: string): string | false
readFileSync(filePath: StandardizedFilePath, encoding: string | undefined): string
removeFileDelete(filePath: StandardizedFilePath): void
saveForDirectory(dirPath: StandardizedFilePath): Promise<void>
saveForDirectorySync(dirPath: StandardizedFilePath): void
writeFile(filePath: StandardizedFilePath, fileText: string): Promise<void>
writeFileSync(filePath: StandardizedFilePath, fileText: string): void