Skip to content

Commit 037d3dc

Browse files
authored
Merge pull request #72 from LePips/fix-downloads-folder-path
Fix Downloads Folder Path
2 parents c618d6c + 7dc5171 commit 037d3dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Get/DataLoader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDele
248248
let handler = (handlers[downloadTask] as? DownloadTaskHandler)
249249
let downloadsURL = DataLoader.downloadDirectoryURL
250250
try? FileManager.default.createDirectory(at: downloadsURL, withIntermediateDirectories: true, attributes: nil)
251-
let newLocation = downloadsURL.appendingPathExtension(location.lastPathComponent)
251+
let newLocation = downloadsURL.appendingPathComponent(location.lastPathComponent)
252252
try? FileManager.default.moveItem(at: location, to: newLocation)
253253
handler?.location = newLocation
254254
handler?.downloadDelegate?.urlSession(session, downloadTask: downloadTask, didFinishDownloadingTo: newLocation)

0 commit comments

Comments
 (0)