Browse Source

Merge pull request #485 from nextcloud/autoUploadNoTmpFiles

ignore files ending with ".tmp"
Andy Scherzinger 8 years ago
parent
commit
6bc2a58863

+ 1 - 1
src/com/owncloud/android/services/observer/SyncedFolderObserver.java

@@ -43,7 +43,7 @@ class SyncedFolderObserver extends RecursiveFileObserver {
 
         File temp = new File(path);
 
-        if (!temp.getName().equalsIgnoreCase("null")) {
+        if (!temp.getName().equalsIgnoreCase("null") && !temp.getName().endsWith(".tmp")) {
             PersistableBundle bundle = new PersistableBundle();
             // TODO extract
             bundle.putString(SyncedFolderJobService.LOCAL_PATH, path);