hammerspoon2-docs
    Preparing search index...

    Function attributes

    • Get metadata attributes for a file or directory. Does not follow symbolic links. Use isSymlink to detect links before calling this if needed.

      Parameters

      • path: string

        Path to inspect. ~ is expanded.

      Returns Record<string, any> | null

      Attributes object, or null if the path cannot be accessed.