Path problème qui empêchait la sauvegarde des fichiers dont la taille était inférieur au BUFFER (1024)

This commit is contained in:
Benjamin 2022-03-15 20:36:09 +01:00
parent a4b4929bf6
commit 58662b3398
2 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@ public class SaveFileErrorRule extends ProtocolWriter {
// Suppression du fichier temporaire dans le stockage du FFE // Suppression du fichier temporaire dans le stockage du FFE
ShaHasher hasher = new ShaHasher(context.getLogin() + "_" + context.getDataString("fileName")); ShaHasher hasher = new ShaHasher(context.getLogin() + "_" + context.getDataString("fileName"));
/*
try { try {
Files.deleteIfExists(Path.of( Files.deleteIfExists(Path.of(
String.format("%s/%s", this.storagePath, String.format("%s/%s", this.storagePath,
@ -39,6 +40,8 @@ public class SaveFileErrorRule extends ProtocolWriter {
)); ));
} catch (IOException e) {} } catch (IOException e) {}
*/
return result; return result;
} }
} }

View File

@ -1 +1 @@
{"unicast_port":8000,"multicast_ip":"224.66.66.1","multicast_port":15502,"network_interface":"","tls":true,"storagePath":"/home/benjamin/ffe","users":[{"name":"aaaaa","password":"$2a$10$nDCEDVwbNO/YDQ4qdRcxfuES4.aboluLzWouXXsk6vDoaWocv516W","aes_key":"kYtwHy9qJBg30WS6axWTFGVE0Ge5kpYiJJlC+COIEI4=","files":[{"name":"README.md","fileNameSalt":"QnjgVrrW2KADUYUdeD/KcQ==","size":17,"iv":"E5JtY/JrH1B447F/my8Hkg==","storage":["lightcontainerSB01"]}]}]} {"unicast_port":8000,"multicast_ip":"224.66.66.1","multicast_port":15502,"network_interface":"wlp1s0","tls":true,"storagePath":"/home/benjamin/ffe","users":[{"name":"aaaaa","password":"$2a$10$nDCEDVwbNO/YDQ4qdRcxfuES4.aboluLzWouXXsk6vDoaWocv516W","aes_key":"kYtwHy9qJBg30WS6axWTFGVE0Ge5kpYiJJlC+COIEI4=","files":[{"name":"main.py","fileNameSalt":"PLQB1QjPaKdfdM+zjywxcQ==","size":854,"iv":"UnkiNxFMYsRcw5fsEkr+5w==","storage":["lightcontainerSB01"]}]}]}