(type:"link"|"file"|"directory")
| 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) { |
no test coverage detected