Lines Matching full:fs
37 import * as fs from 'fs';
84 if (this.mCustomProfiles.mOutputDir && !fs.existsSync(this.mCustomProfiles.mOutputDir)) {
85 fs.mkdirSync(this.mCustomProfiles.mOutputDir);
96 if (!fs.existsSync(sourcePath)) {
101 if (fs.lstatSync(sourcePath).isFile()) {
126 if (!fs.existsSync(newDir)) {
127 fs.mkdirSync(newDir);
131 const fileNames: string[] = fs.readdirSync(dirName);
134 if (fs.lstatSync(filePath).isFile()) {
152 fs.copyFileSync(sourceFilePath, path.join(outputDir, fileName));
176 fs.writeFileSync(sourceFilePath, mixedInfo.content);
190 fs.mkdirSync(path.dirname(resultPath), { recursive: true });
191 fs.writeFileSync(resultPath, mixedInfo.content);
194 fs.writeFileSync(path.join(resultPath + '.map'),
219 fs.writeFileSync(nameCachePath, JSON.stringify(namecache, null, JSON_TEXT_INDENT_LENGTH));