func moveDownloadedFile()

in Sources/Hub/Downloader.swift [320:329]


    func moveDownloadedFile(from srcURL: URL, to dstURL: URL) throws {
        if fileExists(atPath: dstURL.path()) {
            try removeItem(at: dstURL)
        }

        let directoryURL = dstURL.deletingLastPathComponent()
        try createDirectory(at: directoryURL, withIntermediateDirectories: true, attributes: nil)

        try moveItem(at: srcURL, to: dstURL)
    }