Required Instance Methodtuist.filesystem 0.6.6FileSystem

    zipFileOrDirectoryContent(at:to:)

    Zips a file or the content of a given directory.

    FileSystem.swift:239
    func zipFileOrDirectoryContent(at path: AbsolutePath, to: AbsolutePath) async throws

    Parameters

    path

    Path to file or directory. When the path to a file is provided, the file is zipped. When the path points to a directory, the content of the directory is zipped.

    to

    Path to where the zip file will be created.

    Other requirements

    Instance members