hammerspoon2-docs
    Preparing search index...

    Function touch

    • Update the modification timestamp of a file to the current time. Creates the file if it does not exist (equivalent to the POSIX touch command).

      Parameters

      • path: string

        Path to the file. ~ is expanded.

      Returns boolean

      true on success, false on failure.