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

Function populate

services.ts:2050–2067  ·  view source on GitHub ↗
(type:"link"|"file"|"directory")

Source from the content-addressed store, hash-verified

2048 });
2049 },
2050 populate = function node_apps_directory_wrapper_stat_populate(type:"link"|"file"|"directory"):void {
2051 if (exclusions.indexOf(filepath.replace(startPath + sep, "")) < 0) {
2052 if (listonly === true) {
2053 filelist.push(filepath);
2054 } else {
2055 list.push([filepath, type, parent, 0, stat]);
2056 }
2057 }
2058 if (dirs > 0) {
2059 dirCounter(filepath);
2060 } else {
2061 if (listonly === true) {
2062 args.callback(filelist.sort());
2063 } else {
2064 args.callback(list);
2065 }
2066 }
2067 };
2068 if (er !== null) {
2069 if (er.toString().indexOf("no such file or directory") > 0) {
2070 if (errorflag === true) {

Callers 2

statWrapperFunction · 0.85
callback_diffFunction · 0.85

Calls 1

dirCounterFunction · 0.85

Tested by

no test coverage detected