hammerspoon2-docs
    Preparing search index...

    Function copy

    • Copy a file or directory to a new location. The destination must not already exist. If source is a directory, its entire contents are copied recursively.

      Parameters

      • source: string

        Path to the existing file or directory. ~ is expanded.

      • destination: string

        Path for the copy. ~ is expanded.

      Returns boolean

      true on success, false on failure.