MCPcopy
hub / github.com/webpack/webpack / _getManagedItemDirectoryInfo

Method _getManagedItemDirectoryInfo

lib/FileSystemInfo.js:4375–4389  ·  lib/FileSystemInfo.js::FileSystemInfo._getManagedItemDirectoryInfo

* @private * @type {Processor<string, Set<string>>}

(path, callback)

Source from the content-addressed store, hash-verified

4373 * @type {Processor<string, Set<string>>}
4374 */
4375 _getManagedItemDirectoryInfo(path, callback) {
4376 this.fs.readdir(path, (err, elements) => {
4377 if (err) {
4378 if (err.code === class="st">"ENOENT" || err.code === class="st">"ENOTDIR") {
4379 return callback(null, EMPTY_SET);
4380 }
4381 return callback(/** @type {WebpackError} */ (err));
4382 }
4383 const set = new Set(
4384 /** @type {string[]} */
4385 (elements).map((element) => join(this.fs, path, element))
4386 );
4387 callback(null, set);
4388 });
4389 }
4390
4391 /**
4392 * @private

Callers

nothing calls this directly

Calls 2

joinFunction · 0.85
callbackFunction · 0.50

Tested by

no test coverage detected