diff --git a/src/com/olexyn/ensync/Main.java b/src/com/olexyn/ensync/Main.java index 32fff86..b8b9203 100644 --- a/src/com/olexyn/ensync/Main.java +++ b/src/com/olexyn/ensync/Main.java @@ -80,8 +80,7 @@ public class Main { } - syncEntity.addToMapCreated(syncDirectory.getListCreated()); - syncEntity.addToMapDeleted(syncDirectory.getListDeleted()); + // // WARNING: // Be very carefull when to update the StateFileOld diff --git a/src/com/olexyn/ensync/artifacts/SyncEntity.java b/src/com/olexyn/ensync/artifacts/SyncEntity.java index 16f2c6b..d26acae 100644 --- a/src/com/olexyn/ensync/artifacts/SyncEntity.java +++ b/src/com/olexyn/ensync/artifacts/SyncEntity.java @@ -17,8 +17,7 @@ public class SyncEntity { public String name; public int syncInterval = 3600; public Map syncDirectories = new HashMap<>(); - private Map mapCreated = new HashMap<>(); - private Map mapDeleted = new HashMap<>(); + Tools tools = new Tools(); /** @@ -43,44 +42,10 @@ public class SyncEntity { } } - public Map getMapCreated() { - for (Map.Entry entry : syncDirectories.entrySet()) { - SyncDirectory syncDirectory = entry.getValue(); - for (File file : syncDirectory.getListCreated()) { - mapCreated.put(file.getPath(), file); - } - - } - - return mapCreated; - } - - public Map getMapDeleted() { - for (Map.Entry entry : syncDirectories.entrySet()) { - SyncDirectory syncDirectory = entry.getValue(); - for (File file : syncDirectory.getListDeleted()) { - mapDeleted.put(file.getPath(), file); - } - } - return mapDeleted; - } - - public void addToMapCreated(List listCreated) { - for (File file : listCreated) { - mapCreated.put(file.getPath(), file); - } - } - - - public void addToMapDeleted(List listDeleted) { - for (File file : listDeleted) { - mapDeleted.put(file.getPath(), file); - } - } }