Module

x/ts_morph/common/ts_morph_common.js>TransactionalFileSystem

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

Constructors

new
TransactionalFileSystem(options)

Methods

copyDirectoryImmediately(srcDirPath, destDirPath)
copyDirectoryImmediatelySync(srcDirPath, destDirPath)
fileExists(filePath)
fileExistsSync(filePath)
getStandardizedAbsolutePath(fileOrDirPath, relativeBase)
glob(patterns)
globSync(patterns)
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)
writeFile(filePath, fileText)
writeFileSync(filePath, fileText)