From 16ce5914cb59d35b0c375b591c61a3b3f41c6ec7 Mon Sep 17 00:00:00 2001 From: Ivan Olexyn Date: Sun, 17 May 2020 16:45:06 +0200 Subject: [PATCH] + do not list modif to dir. --- src/com/olexyn/ensync/artifacts/SyncDirectory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/olexyn/ensync/artifacts/SyncDirectory.java b/src/com/olexyn/ensync/artifacts/SyncDirectory.java index 2230867..3453466 100644 --- a/src/com/olexyn/ensync/artifacts/SyncDirectory.java +++ b/src/com/olexyn/ensync/artifacts/SyncDirectory.java @@ -135,6 +135,8 @@ public class SyncDirectory { String freshFileKey = freshFileEntry.getKey(); SyncFile freshFile = freshFileEntry.getValue(); + if(freshFile.isDirectory()){ continue;} // no need to modify Directories, the Filesystem will do that, if a File changed. + // If KEY exists in OLD , thus FILE was NOT created. if (stateFileMap.containsKey(freshFileKey)) {