Disabled testing code
This commit is contained in:
parent
fcf2d041cb
commit
0b3e4198cd
2 changed files with 6 additions and 6 deletions
|
@ -136,10 +136,10 @@ abstract public class DataExchange {
|
||||||
fileWalker(localFolder.toFile(), p -> fileCache.add(new SubFile(localFolder.relativize(p)
|
fileWalker(localFolder.toFile(), p -> fileCache.add(new SubFile(localFolder.relativize(p)
|
||||||
.toString(), FileHash.create(p.toFile()))));
|
.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()) {
|
if (!BCLib.isClient()) {
|
||||||
fileCache.add(new SubFile("../breakout.json", FileHash.create(mapAbsolute("../breakout.json").toFile())));
|
fileCache.add(new SubFile("../breakout.json", FileHash.create(mapAbsolute("../breakout.json").toFile())));
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,11 +52,11 @@ public class SendFiles extends DataHandler {
|
||||||
return true;
|
return true;
|
||||||
}));*/
|
}));*/
|
||||||
|
|
||||||
//this will try to send a folder-file that was not registered or requested by the client
|
/*//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()));
|
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
|
/*//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()));
|
existingFiles.add(new AutoFileSyncEntry.ForDirectFileRequest(DataExchange.SYNC_FOLDER.folderID, new File("../breakout.json"), DataExchange.SYNC_FOLDER.mapAbsolute("../breakout.json").toFile()));*/
|
||||||
|
|
||||||
|
|
||||||
writeString(buf, token);
|
writeString(buf, token);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue