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 HSFileAttributes | null

      The path's attributes, or null if the path cannot be accessed.