MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / stat

Function stat

services.ts:1307–1328  ·  view source on GitHub ↗
(pathitem:string)

Source from the content-addressed store, hash-verified

1305 });
1306 },
1307 stat = function node_apps_build_libraries_libraryFiles_stat(pathitem:string) {
1308 node.fs.stat(pathitem, function node_apps_build_libraries_libraryFiles_stat_callback(errs:Error, stats:Stats):void {
1309 if (errs !== null) {
1310 apps.errout([errs.toString()]);
1311 return;
1312 }
1313 if (stats.isDirectory() === true) {
1314 node.fs.readdir(pathitem, "utf8", function node_apps_build_libraries_libraryFiles_stat_callback_readdir(errd:Error, filelist:string[]):void {
1315 if (errd !== null) {
1316 apps.errout([errd.toString()]);
1317 return;
1318 }
1319 filelen = filelen + (filelist.length - 1);
1320 filelist.forEach(function node_apps_build_libraries_libraryFiles_stat_callback_readdir_each(value:string):void {
1321 node_apps_build_libraries_libraryFiles_stat(pathitem + sep + value);
1322 });
1323 });
1324 } else if (stats.isFile() === true) {
1325 appendFile(pathitem);
1326 }
1327 });
1328 };
1329 let a:number = 0,
1330 filelen: number = libFiles.length;
1331 libFiles.forEach(function node_apps_build_libraries_libraryFiles_each(value:string) {

Callers 1

libraryFilesFunction · 0.85

Calls 1

appendFileFunction · 0.85

Tested by

no test coverage detected