diff --git a/app/src/main/java/lightcontainer/protocol/rules/reader/RemoveFileRule.java b/app/src/main/java/lightcontainer/protocol/rules/reader/RemoveFileRule.java index 2ec6135..07ba95e 100644 --- a/app/src/main/java/lightcontainer/protocol/rules/reader/RemoveFileRule.java +++ b/app/src/main/java/lightcontainer/protocol/rules/reader/RemoveFileRule.java @@ -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"; diff --git a/app/src/main/resources/appdata.json b/app/src/main/resources/appdata.json index 5be4580..a99218c 100644 --- a/app/src/main/resources/appdata.json +++ b/app/src/main/resources/appdata.json @@ -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": [] } ] } \ No newline at end of file