@rogerpence/rp-utils
    Preparing search index...

    Function getDirEntries

    • Retrieves directory entries for all files and subdirectories in a directory

      Returns an array of fs.Dirent objects which include file names and types (file, directory, symbolic link, etc.) without additional filesystem stat information.

      Parameters

      • targetDirectory: string

        The path to the directory to read

      Returns Dirent<string>[] | undefined

      An array of fs.Dirent objects, or undefined if the directory doesn't exist or an error occurs