delete-after-download
deletes photos from iCloud
that haven't been successfully downloaded
#614
Labels
delete-after-download
deletes photos from iCloud
that haven't been successfully downloaded
#614
Overview
When specifying the
delete-after-download
flag on CLI the media item is deleted fromiCloud
whether or not the download succeeds. This is, I'd wager, something that folks will be surprised by (I definitely was).Steps to Reproduce
delete-after-download
flag:else
condition.iCloud
:Expected Behavior
It makes sense, that if a download fails, that the file in
iCloud
should not be deleted. It puts the user in a position where they now have to negotiate restoring a photo/video, instead of just trying to download it again in the normal fashion.Actual Behavior
The file is not downloaded to disk and is deleted from
iCloud
. In my case, I'm going to have to now figure out which files I don't have locally and attempt to restore all of them (hundreds, potentially over a thousand files) so that I can download them again.Context
I started a branch to work on this, but the issue is that the result of the download is nested so far away from the code that governs deleting after download, it would either require passing in the
delete-after-download
flag to thedownload
function (which might work) and make the adjustment there.Otherwise, this download function, that appears to just be the result of calling this download_builder factory function needs to actually return the result of the download so that it (probably as a
bool
) can be evaluated with thedelete-after-download
flag to make an informed decision about deletion.The text was updated successfully, but these errors were encountered: