Skip to content

Commit 22ff92a

Browse files
Fix repo file update (#239)
1 parent f6ca318 commit 22ff92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Hub/Downloader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ extension Downloader: URLSessionDownloadDelegate {
347347

348348
extension FileManager {
349349
func moveDownloadedFile(from srcURL: URL, to dstURL: URL) throws {
350-
if fileExists(atPath: dstURL.path()) {
350+
if fileExists(atPath: dstURL.path(percentEncoded: false)) {
351351
try removeItem(at: dstURL)
352352
}
353353

0 commit comments

Comments
 (0)