Skip to content

support to delete downloaded photos#525

Closed
ddnm102 wants to merge 19 commits intoicloud-photos-downloader:masterfrom
ddnm102:master
Closed

support to delete downloaded photos#525
ddnm102 wants to merge 19 commits intoicloud-photos-downloader:masterfrom
ddnm102:master

Conversation

@ddnm102
Copy link
Copy Markdown

@ddnm102 ddnm102 commented Jan 12, 2023

Hi there!

Thank you so much for spending time to write this tool!!

In my case, I need to delete all photos from iCloud after downloaded to save space for next sync from my iPhone (free plan only have 5GG), so, after searching and testing, I already added "--auto-delete-downloaded" flag.

I think, it is not only my needed case, someone else will need. So, Please kindly take a look if you want to add this feature!

Thank you so much!

@AndreyNikiforov
Copy link
Copy Markdown
Collaborator

@ryda20 thanks a lot for contribution. Quick question: what happens if user specifies existing --auto-delete option and new -auto-delete-downloaded together? And if running multiple times with both options? I did not analyze all possible outcomes, but it seems that suicide is possible (loosing all assets locally and in the cloud). If that is correct, how can we help users avoid that outcome?

@AndreyNikiforov AndreyNikiforov self-requested a review January 18, 2023 03:25
Copy link
Copy Markdown
Collaborator

@AndreyNikiforov AndreyNikiforov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase to get tests working, add tests for new functionality, and suggest idea to prevent total loss of photo assets (locally and in the cloud).

deletes any files found in there. (If you
restore the photo in iCloud, it will be
downloaded again.)
--auto-delete-downloaded Auto delete downloaded photo from icloud.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What can we do to help users avoid running --auto-delete-downloaded and --auto-delete together or consequently (which will delete all photos locally and in the cloud)?



photos_delete_list = []
def auto_delete_downloaded_photos(photo, end=False):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a test for this new functionality, please?

@AndreyNikiforov
Copy link
Copy Markdown
Collaborator

There is similar feature in #431 . What are the differences between the two?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants