Module

x/ts_morph/common/ts_morph_common.js>TransactionalFileSystem

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class TransactionalFileSystem
import { TransactionalFileSystem } from "https://dotland.deno.dev/x/ts_morph@17.0.1/common/ts_morph_common.js";

Constructors

new
TransactionalFileSystem(options)

Methods

copyDirectoryImmediately(srcDirPath, destDirPath)
copyDirectoryImmediatelySync(srcDirPath, destDirPath)
executeOperation(operation)
fileExists(filePath)
fileExistsSync(filePath)
getStandardizedAbsolutePath(fileOrDirPath, relativeBase)
glob(patterns)
globSync(patterns)
libFileExists(filePath)
moveDirectoryImmediately(srcDirPath, destDirPath)
moveDirectoryImmediatelySync(srcDirPath, destDirPath)
moveFileImmediately(
oldFilePath,
newFilePath,
fileText,
)
moveFileImmediatelySync(
oldFilePath,
newFilePath,
fileText,
)
queueCopyDirectory(srcPath, destPath)
queueFileDelete(filePath)
queueMkdir(dirPath)
queueMoveDirectory(srcPath, destPath)
readDirSync(dirPath)
readFile(filePath, encoding)
readFileIfExists(filePath, encoding)
readFileIfExistsSync(filePath, encoding)
readFileOrNotExists(filePath, encoding)
readFileOrNotExistsSync(filePath, encoding)
readFileSync(filePath, encoding)
readLibFile(filePath)
throwIfLibFile(filePath)
writeFile(filePath, fileText)
writeFileSync(filePath, fileText)