hammerspoon2-docs
    Preparing search index...

    Function displayName

    • Return the localised display name for a file or directory as shown by Finder. For example, /Library appears as "Library" in Finder even though its on-disk name is the same.

      Parameters

      • path: string

        Path to the file or directory. ~ is expanded.

      Returns string | null

      Display name string, or null if the path does not exist.