This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Duplicate counts and write to file #92
base: main
Are you sure you want to change the base?
Duplicate counts and write to file #92
Changes from 1 commit
21f641b
0e62a05
78d418a
a966adf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This return probably breaks the album feature. I think it would work fine without the return.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I returned there because I did not want it to delete local asset and was not sure if it should proceed with anything else if it is a duplicate. Let me know your thoughts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if they set delete to true it should delete the files when they've been backed up to the server.
It probably doesn't make sense to log the output of duplicates when delete is used though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have feelings against deleting the asset if its identified as a duplicate. I feel like it technically has not been backed up to the server and should not be deleted. Its either already on there or like in my case google created a bunch of duplicates of the same file and it matched to the original that was uploaded. Logging these cases out so that investigation can happen I feel is what I would want at least. I can remove the return and disable the delete if duplicate, or just remove the return and let it delete.
I'll let you make the decision.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only situation that can cause
duplicate: true
is if the file, byte for byte, exists exactly on the server. I personally never use the CLI with the delete option, so I don't really care one way or the other, but I would expect it to delete it (which is what it does today btw - this is existing functionality).