* @private * @type {Processor<string, Set<string>>}
(path, callback)
| 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 |