MCPcopy Index your code
hub / github.com/nodejs/node / processReaddirResult

Function processReaddirResult

lib/fs.js:1726–1726  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

1724// They are guaranteed to be the same length; hence, setting `length` to the length
1725// of the first array within the result.
1726const processReaddirResult = (args) => (args.context.withFileTypes ? handleDirents(args) : handleFilePaths(args));
1727
1728function handleDirents({ result, currentPath, context }) {
1729 const { 0: names, 1: types } = result;

Callers 1

readFunction · 0.85

Calls 2

handleDirentsFunction · 0.85
handleFilePathsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…