func copyLog()

in Sources/XCMetricsClient/Log Management/LogCopier.swift [44:49]


    func copyLog(from source: URL, to destination: URL) throws {
        if exec("gzip", "-t", source.path) != 0 {
            throw LogCopierError.invalidLog
        }
        try fileAccessor.copyItem(at: source, to: destination)
    }