Function readDirectoryDirentsPathsSync

  • 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.

    Parameters

    • dirpath: string

      The path of the directory to read.

    Returns (fs.Dirent & {
        get path(): string;
    })[]

    Remarks

    The fs.Dirent object contains the name of the FSO, and its type (isDirectory, isFile, etc.)

Generated using TypeDoc