- Activation suppression fichier temp lors d'une erreur pour l'ajout de ceului-ci au SBE
This commit is contained in:
parent
2b7b0a36d5
commit
99835cf73e
@ -85,8 +85,6 @@ public class SavefileRule extends ProtocolReader {
|
||||
|
||||
this.setResultCommand(protocolRep.executeWriter(getContext(), SendfileRule.NAME, this.filename, String.valueOf(encryptedFileSize), fileHash), ResultCmdReceiver.STOREBACKEND);
|
||||
} catch (IOException | SHA.ShaException e) {
|
||||
// TODO : Supprimer le fichier
|
||||
System.out.println("HEYHEYHEYHEYHEY OHOHOH");
|
||||
this.setResultCommand(protocolRep.executeWriter(getContext(), SaveFileErrorRule.NAME), ResultCmdReceiver.CLIENT);
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -31,17 +31,13 @@ public class SaveFileErrorRule extends ProtocolWriter {
|
||||
|
||||
// Suppression du fichier temporaire dans le stockage du FFE
|
||||
ShaHasher hasher = new ShaHasher(context.getLogin() + "_" + context.getDataString("fileName"));
|
||||
/*
|
||||
try {
|
||||
Files.deleteIfExists(Path.of(
|
||||
String.format("%s/%s", this.storagePath,
|
||||
hasher.fromSalt(hasher.saltToByte(context.getDataString("fileNameSalt")))
|
||||
)
|
||||
));
|
||||
} catch (IOException e) {
|
||||
}
|
||||
|
||||
*/
|
||||
} catch (IOException e) {}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user