mzeeshanid / MZDownloadManager

This download manager uses NSURLSession api to download files. It can download multiple files at a time. It can download large files if app is in background. It can resume downloads if app was quit.
BSD 3-Clause "New" or "Revised" License
1.12k stars 238 forks source link

File already exist #92

Open Harshad290194 opened 4 years ago

Harshad290194 commented 4 years ago

Faliled Error Domain=NSCocoaErrorDomain Code=516 "“CFNetworkDownload_lgxxfd.tmp” couldn’t be moved to “Loc1371” because an item with the same name already exists." UserInfo={NSSourceFilePathErrorKey=/Users/iuniverse/Library/Developer/CoreSimulator/Devices/Bgdfgdfg/data/Containers/Data/Application/4sdfsjhfdskfh/Library/Caches/com.apple.nsurlsessiond/Downloads/com.abc/CFNetworkDownload_lgxxfd.tmp, NSUserStringVariant=( Move

when location already exist then downloading stop working.

watemotion commented 3 years ago

I'm getting exactly the same error:

Error while moving downloaded file to destination path:Error Domain=NSCocoaErrorDomain Code=516 \"“CFNetworkDownload_xxxxx.tmp” couldn’t be moved to “that_folder” because an item with the same name already exists.

Any news about how to fix or manage this?

YogeshBhattGWL commented 1 year ago

I am getting error: Object 0x14160b320 deallocated with retain count 2, reference may have escaped from deinit. 2023-05-22 15:37:34.405425+0530 Pilgrim_app_ios[64961:11795387] Object 0x14160b320 deallocated with retain count 2, reference may have escaped from deinit.