• Home
  • Raw
  • Download

Lines Matching refs:fs

16 const fs = require('fs');  constant
79 if (fs.existsSync(path.resolve(arkDir, 'build-win'))) {
81 } else if (fs.existsSync(path.resolve(arkDir, 'build-mac'))) {
83 } else if (!fs.existsSync(path.resolve(arkDir, 'build'))) {
174 if (!(fs.existsSync(parent) && fs.statSync(parent).isDirectory())) {
178 fs.writeFileSync(output, inputString);
191 if (!(fs.existsSync(parent) && fs.statSync(parent).isDirectory())) {
194 fs.writeFileSync(cacheOutputPath, inputString);
195 if (fs.existsSync(cacheOutputPath)) {
196 let fileSize = fs.statSync(cacheOutputPath).size;
198 if (!isDebug && (process.env.aceBuildJson && fs.existsSync(process.env.aceBuildJson))) {
199 const buildJsonInfo = JSON.parse(fs.readFileSync(process.env.aceBuildJson).toString());
217 if (!(fs.existsSync(parent) && !fs.statSync(parent).isFile())) {
220 fs.mkdirSync(path_);
308 if (fs.existsSync(hashFilePath)) {
309 jsonFile = fs.readFileSync(hashFilePath).toString();
315 if (!fs.existsSync(cacheOutputPath)) {
321 if (fs.existsSync(cacheAbcFilePath)) {
343 if (!fs.existsSync(cacheOutputPath) || !fs.existsSync(cacheAbcFilePath)) {
357 fs.writeFileSync(hashFilePath, JSON.stringify(hashJsonObject));
363 … if (!fs.existsSync(process.env.cachePath) || !fs.statSync(process.env.cachePath).isDirectory()) {
371 if (!(fs.existsSync(parent) && fs.statSync(parent).isDirectory())) {
378 if (!fs.existsSync(hashPath) || !fs.statSync(hashPath).isDirectory()) {
399 const content = fs.readFileSync(path);
415 if (!fs.existsSync(cacheAbcFilePath)) {
421 if (!(fs.existsSync(parent) && fs.statSync(parent).isDirectory())) {
426 fs.copyFileSync(cacheAbcFilePath, abcFile);
428 if (process.env.cachePath === undefined && fs.existsSync(cacheOutputPath)) {
429 fs.unlinkSync(cacheOutputPath);
450 if (!(fs.existsSync(nodeModulesPath) && fs.statSync(nodeModulesPath).isDirectory())) {
636 fs.writeFileSync(filesInfoPath, filesInfo, 'utf-8');
665 if (fs.existsSync(filePath)) {
666 fs.unlinkSync(filePath);
743 if (fs.existsSync(cachePrebuildInfoPath)) {
746 cachedJson = JSON.parse(fs.readFileSync(cachePrebuildInfoPath).toString());
765 fs.writeFile(cachePrebuildInfoPath, JSON.stringify(cachedJson, null, 2), 'utf-8',
777 if (hashFilePath.length !== 0 && fs.existsSync(hashFilePath)) {
778 fs.unlinkSync(hashFilePath);