Skip to main content
Deno 2 is finally here 🎉️
Learn more
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://deno.land/x/ts_morph@18.0.0/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)