Nouvelles Regex : CLIENT_REMOVE_FILE validée

This commit is contained in:
Maximilien LEDOUX 2022-03-19 12:49:49 +01:00
parent fdcccc1788
commit 4fac3a6d52
2 changed files with 6 additions and 13 deletions

View File

@ -3,15 +3,18 @@ package lightcontainer.protocol.rules.reader;
import lightcontainer.domains.client.Context;
import lightcontainer.interfaces.ProtocolRepository;
import lightcontainer.protocol.ProtocolReader;
import lightcontainer.protocol.StandardizedDefinitions;
import lightcontainer.protocol.rules.writer.EraseFileRule;
import lightcontainer.protocol.rules.writer.RemoveFileErrorRule;
import lightcontainer.storage.ReadOnlyFile;
import java.util.Iterator;
public class RemoveFileRule extends ProtocolReader {
import static lightcontainer.protocol.StandardizedDefinitions.CLIENT_REMOVE_FILE;
private static final String PATTERN = "^REMOVEFILE ([^ !]{1,20})\r\n$";
public class RemoveFileRule extends ProtocolReader {
//"^REMOVEFILE ([^ !]{1,20})\r\n$"
private static final String PATTERN = CLIENT_REMOVE_FILE;
private static final String NAME = "REMOVEFILE";

View File

@ -10,17 +10,7 @@
"name": "aaaaa",
"password": "$2a$10$Tuh5xmGEy0g26hQO1SHNY.TNy8rY9VCkpzRLP3rlpnVHtwYew4.km",
"aes_key": "a68CqbWmmf0cuvgvMhm9OC+Y24ut3DY/0WBqtd3nGfU=",
"files": [
{
"name": "test.txt",
"fileNameSalt": "3yLVBqM/zf8CcCFPqdh15Q==",
"size": 301,
"iv": "WfokhcAIefnnZnk3sYLjiA==",
"storage": [
"lightcontainerSB01"
]
}
]
"files": []
}
]
}