-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid duplicate files with the same name #4361
Conversation
@gvmura, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MTGap, @AdamWill, @icewind1991 and @Xenopathic to be potential reviewers. |
It doesn't handle duplicate files in Google Drive, it tries to avoid them. |
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.
Looks fine as far as I can tell
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.
Makes sense
@gvmura thanks a lot for your pull request! Just run:
|
UPDATE: I have just tried to sign and commit @rullzer sorry, This morning I tested owncloud 9.1.5 and I saw that when the system create the secondary file it handle the Google version. No "temporary" file is created in Google. |
When it renames the temporary file, it tests if the file is already present. If so, it moves to trash the previous version to avoid duplicate files with the same name (message log: "Ignoring duplicate file name: ... on Google Drive for Google user: ...") Signed-off-by: gvmura <gvmura@uniss.it>
Codecov Report
@@ Coverage Diff @@
## stable11 #4361 +/- ##
==============================================
+ Coverage 57.39% 57.39% +<.01%
Complexity 19439 19439
==============================================
Files 1214 1214
Lines 72565 72563 -2
Branches 1237 1237
==============================================
Hits 41650 41650
+ Misses 30915 30913 -2
|
@gvmura so this is not needed? Because then we can close this... |
Before merging this keep in mind: this is against stable11 |
@rullzer, |
Best would be then to have this PR against master and we will take care of backporting to stable11. Could open this PR against master instead? |
Ok, tomorrow mornign I'll do it. |
When it renames the temporary file, it tests if the file is already present. If so, it moves to trash the previous version to avoid duplicate files with the same name (message log: "Ignoring duplicate file name: ... on Google Drive for Google user: ...")