Эх сурвалжийг харах

Merge pull request #829 from nextcloud/ignore-thumbnails

Ignore thumbnail files
Tobias Kaminsky 8 жил өмнө
parent
commit
2033b81f80

+ 2 - 1
src/main/java/com/owncloud/android/services/observer/SyncedFolderObserverService.java

@@ -57,7 +57,8 @@ public class SyncedFolderObserverService extends Service {
         fileFilter = new FileFilter() {
             @Override
             public boolean accept(File pathname) {
-                return !pathname.getName().startsWith(".") && !pathname.getName().endsWith(".tmp");
+                return !pathname.getName().startsWith(".") && !pathname.getName().endsWith(".tmp") &&
+                        !pathname.getName().endsWith(".temp") && !pathname.getName().endsWith(".thumbnail");
             }
         };