}); assert( appLoader.plugins.onerror.path === fs.realpathSync(path.join(EGG_BASE, 'node_modules/egg-onerror')) ); assert(appLoader.plugins.onerror.package === 'egg-onerror');
this.matches.forEach(function (matchset, index) { var set = self.matches[index] = Object.create(null) for (var p in matchset) { try { p = self._makeAbs(p) var real = rp.realpathSync(p, self.realpathCache) set[real] = true } catch (er) { if (er.syscall === 'stat') { set[self._makeAbs(p)] = true } else { throw er } } } })
function toRealPath(requestPath) { return fs.realpathSync(requestPath, { [internalFS.realpathCacheKey]: realpathCache }); }
/** * @returns {([boolean, string])} */ function searchCode(apath, codeName) { const codePath = normalizeForWindows(path.join(apath, codeName)); //console.log(`Searching at ${codePath}`) if (existsSync(codePath)) return [true, realpathSync(codePath)]; return [false, undefined]; }
/** * Created by ThuanLe on 1/13/2016. */ var hooks = function hooks() { var fs = require('fs'); var tmp = require('tmp'); this.Before(function () { var tmpObject = tmp.dirSync({unsafeCleanup: true}); this.tmpDir = fs.realpathSync(tmpObject.name); }); }
get pluginsFolder() {return this._pluginsFolder || (this._pluginsFolder = fs.realpathSync(path.resolve(bdConfig.dataPath + "plugins/")));}
chokidar.watch (path, { ignoreInitial: true }) .on ('all', (stat, f) => { changed (stat, fs.realpathSync.catches (f) (f)) })
const processor = (report, reporterOptions = {}, jestRootDir = null) => { // If jest-junit is used as a reporter allow for reporter options // to be used. Env and package.json will override. const options = getOptions.options(reporterOptions); report.testResults.forEach((t, i) => { t.console = consoleBuffer[t.testFilePath]; }); const jsonResults = buildJsonResults(report, fs.realpathSync(process.cwd()), options); // Set output to use new outputDirectory and fallback on original output const outputName = (options.uniqueOutputName === 'true') ? getOptions.getUniqueOutputName() : options.outputName const output = path.join(options.outputDirectory, outputName); const finalOutput = getOptions.replaceRootDirInOutput(jestRootDir, output); // Ensure output path exists mkdirp.sync(path.dirname(finalOutput)); // Write data to file fs.writeFileSync(finalOutput, xml(jsonResults, { indent: ' ', declaration: true })); // Jest 18 compatibility return report; }
const baseFolder = isPlugin ? self.pluginsFolder : self.themesFolder; const possiblePath = path.resolve(baseFolder, path.basename(filename)); if (!fs.existsSync(possiblePath) || filename !== fs.realpathSync(possiblePath)) return Reflect.apply(originalRequire, this, arguments); let content = fs.readFileSync(filename, "utf8"); content = Utils.stripBOM(content);
console.log('Using ' + configFileType + ' file "' + fs.realpathSync(filePath) + '".');
get themesFolder() {return this._themesFolder || (this._themesFolder = fs.realpathSync(path.resolve(bdConfig.dataPath + "themes/")));}
function toRealPath(requestPath) { return fs.realpathSync(requestPath, { [internalFS.realpathCacheKey]: realpathCache }); }
get pluginsFolder() {return this._pluginsFolder || (this._pluginsFolder = fs.realpathSync(path.resolve(bdConfig.dataPath + "plugins/")));}
get themesFolder() {return this._themesFolder || (this._themesFolder = fs.realpathSync(path.resolve(bdConfig.dataPath + "themes/")));}
const baseFolder = isPlugin ? self.pluginsFolder : self.themesFolder; const possiblePath = path.resolve(baseFolder, path.basename(filename)); if (!fs.existsSync(possiblePath) || filename !== fs.realpathSync(possiblePath)) return Reflect.apply(originalRequire, this, arguments); let content = fs.readFileSync(filename, "utf8"); content = Utils.stripBOM(content);