hammerspoon2-docs
    Preparing search index...

    Function list

    • List the immediate contents of a directory. Returns bare filenames (not full paths), sorted alphabetically. The . and .. entries are never included.

      Parameters

      • path: string

        Path to the directory. ~ is expanded.

      Returns string[] | null

      Sorted array of filenames, or null if the path cannot be read.