Lines Matching refs:fs
16 const fs = require('fs'); constant
61 if (module.resource && fs.existsSync(module.resource)) {
74 if (fs.existsSync(commonPath)) {
79 if (fs.existsSync(i18nPath)) {
176 if (fs.existsSync(entryFile)) {
177 const oldArray = JSON.parse(fs.readFileSync(entryFile));
181 } else if (!fs.existsSync(cachePath)) {
185 fs.writeFileSync(entryFile, JSON.stringify(entryArray));
194 fs.writeFile(path.resolve(buildPath, 'compile_error.log'), content, (err) => {
318 if (!fs.existsSync(process.env.aceSoPath)) {
320 if (!(fs.existsSync(parent) && !fs.statSync(parent).isFile())) {
324 oldInfo = fs.readFileSync(process.env.aceSoPath, 'utf-8') + '\n';
326 fs.writeFileSync(process.env.aceSoPath, oldInfo + Array.from(useOSFiles).join('\n'));