diff --git a/src/main/java/ru/bclib/api/dataexchange/handler/DataExchange.java b/src/main/java/ru/bclib/api/dataexchange/handler/DataExchange.java index dfc60bb5..4b3b65dd 100644 --- a/src/main/java/ru/bclib/api/dataexchange/handler/DataExchange.java +++ b/src/main/java/ru/bclib/api/dataexchange/handler/DataExchange.java @@ -136,10 +136,10 @@ abstract public class DataExchange { fileWalker(localFolder.toFile(), p -> fileCache.add(new SubFile(localFolder.relativize(p) .toString(), FileHash.create(p.toFile())))); - //this tests if we can trick the system to load files that are not beneath the base-folder + /*//this tests if we can trick the system to load files that are not beneath the base-folder if (!BCLib.isClient()) { fileCache.add(new SubFile("../breakout.json", FileHash.create(mapAbsolute("../breakout.json").toFile()))); - } + }*/ } } diff --git a/src/main/java/ru/bclib/api/dataexchange/handler/SendFiles.java b/src/main/java/ru/bclib/api/dataexchange/handler/SendFiles.java index a2e468e3..1746f1cb 100644 --- a/src/main/java/ru/bclib/api/dataexchange/handler/SendFiles.java +++ b/src/main/java/ru/bclib/api/dataexchange/handler/SendFiles.java @@ -52,11 +52,11 @@ public class SendFiles extends DataHandler { return true; }));*/ - //this will try to send a folder-file that was not registered or requested by the client - existingFiles.add(new AutoFileSyncEntry.ForDirectFileRequest(DataExchange.SYNC_FOLDER.folderID, new File("test.json"), DataExchange.SYNC_FOLDER.mapAbsolute("test.json").toFile())); + /*//this will try to send a folder-file that was not registered or requested by the client + existingFiles.add(new AutoFileSyncEntry.ForDirectFileRequest(DataExchange.SYNC_FOLDER.folderID, new File("test.json"), DataExchange.SYNC_FOLDER.mapAbsolute("test.json").toFile()));*/ - //this will try to send a folder-file that was not registered or requested by the client and is outside the base-folder - existingFiles.add(new AutoFileSyncEntry.ForDirectFileRequest(DataExchange.SYNC_FOLDER.folderID, new File("../breakout.json"), DataExchange.SYNC_FOLDER.mapAbsolute("../breakout.json").toFile())); + /*//this will try to send a folder-file that was not registered or requested by the client and is outside the base-folder + existingFiles.add(new AutoFileSyncEntry.ForDirectFileRequest(DataExchange.SYNC_FOLDER.folderID, new File("../breakout.json"), DataExchange.SYNC_FOLDER.mapAbsolute("../breakout.json").toFile()));*/ writeString(buf, token);