readDirectoryDirentsPathsSafeSync(dirpath): (fs.Dirent & { get path(): string; })[] | undefined
Reads a fs.Dirent of all FSO's (files/directories/etc.) in a directory.
Each FSO's full 'path' is available as a lazy-evaluated getter property on the returned Dirent object.
If the directory does not exist, returns undefined.
Parameters
dirpath: string
The path of the directory to read.
Returns (fs.Dirent & { get path(): string; })[] | undefined
Remarks
The fs.Dirent object contains the name of the FSO, and its type (isDirectory, isFile, etc.)
Reads a fs.Dirent of all FSO's (files/directories/etc.) in a directory. Each FSO's full 'path' is available as a lazy-evaluated getter property on the returned Dirent object. If the directory does not exist, returns undefined.