The fs.Dir object that is returned by the fs.opendir APIs includes a couple of methods that are not documented. What is not clear is whether they are meant to be internal only or if they are meant to be public API
processReadResult(path, result)
readSyncRecursive(dirent)
Likewise, the constructor for the fs.Dir is callable without adequate type checking.
There's no documentation in the code so it would be helpful to get some clarification on what is intended here.
/cc @nodejs/fs @cjihrig @targos @addaleax @mcollina @anonrig
The
fs.Dirobject that is returned by thefs.opendirAPIs includes a couple of methods that are not documented. What is not clear is whether they are meant to be internal only or if they are meant to be public APIprocessReadResult(path, result)readSyncRecursive(dirent)Likewise, the constructor for the
fs.Diris callable without adequate type checking.There's no documentation in the code so it would be helpful to get some clarification on what is intended here.
/cc @nodejs/fs @cjihrig @targos @addaleax @mcollina @anonrig