-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Hard-code ignore files with prefix .trashed #14384
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jarno Rankinen <[email protected]>
667f4f4
to
eda0b6f
Compare
app/src/main/java/com/owncloud/android/utils/SyncedFolderUtils.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/utils/SyncedFolderUtils.kt
Outdated
Show resolved
Hide resolved
@alperozturk96 I have the same problem with ".nomedia". |
@tobiasKaminsky @Aohzan Sure, I'll include |
- Added '.pending' and '.nomedia' to the list of exclude prefixes Signed-off-by: Jarno Rankinen <[email protected]>
For |
Ok, I have a Pixel too, but don't have Google stuff on it. Well, right now I do to test the trashcan stuff, but no sync to Google. I did write a rudimentary unit test for the added |
Thanks for your help! I think this should also be added to SyncedFolderUtils -> isQualifiedFolder (L108), as then it ignores all folders with these names. In my case, I only have an empty ".nomedia" folder, but no files in it. What do you think? |
I'd guess folders with those prefixes would be safe to ignore too, so |
- Rename EXCLUDE_FILENAME_PREFIXES to EXCLUDE_PREFIXES - Add '.thumbnail' to EXCLUDE_PREFIXES - Use for folder upload check Signed-off-by: Jarno Rankinen <[email protected]>
Signed-off-by: Jarno Rankinen <[email protected]>
SyncedFolderUtils -> hasExludePrefix is now used in SyncedFolderUtils -> isQualifiedFolder too. Added a simple unit test. |
Signed-off-by: Jarno Rankinen <[email protected]>
Creating initally as a draft. Help on how to write tests for this is most welcome, if necessary, as other comments too.
Fixes issue #10645 for people using Google Photos for handling their local copies of photos. Samsung Photos seems to use the same trashcan method too, though this hasn't been tried on a Samsung phone.
Files with the prefix
.trashed
are excluded from the list of files eligible for sync using the same method as is used for thumbnail files (hard-coded).