From 3055bcecb3e621bb169cd7bb8317b4efcabbf094 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 29 Dec 2016 14:47:17 +0100 Subject: [PATCH] ignore files ending with ".tmp" --- .../android/services/observer/SyncedFolderObserver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/owncloud/android/services/observer/SyncedFolderObserver.java b/src/com/owncloud/android/services/observer/SyncedFolderObserver.java index baa870b6d3..07cc913cf5 100644 --- a/src/com/owncloud/android/services/observer/SyncedFolderObserver.java +++ b/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);