ignore files ending with ".tmp"

This commit is contained in:
tobiasKaminsky 2016-12-29 14:47:17 +01:00 committed by AndyScherzinger
parent d718676709
commit 3055bcecb3
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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);