diff --git a/pkg/protocol/rules/readers/EraseFileRule.go b/pkg/protocol/rules/readers/EraseFileRule.go index d5392cf..af85ec2 100644 --- a/pkg/protocol/rules/readers/EraseFileRule.go +++ b/pkg/protocol/rules/readers/EraseFileRule.go @@ -43,8 +43,7 @@ func (rule EraseFileRule) Execute(data string) (*protocol.ProtocolWriterResult, if rule.Match(data) { values := rule.matcher.Parse(data) - //errRemoveFile := os.Remove(fmt.Sprintf("%s/%s", rule.storagePath, values[1])) - hasRemoveFile := utils.DeleteFile(fmt.Sprintf("%s\\%s", rule.storagePath, values[1]), 10) + hasRemoveFile := utils.DeleteFile(fmt.Sprintf("%s/%s", rule.storagePath, values[1]), 10) if !hasRemoveFile { return rule.protocolRepo.ExecuteWriter(writers.EraseErrorRulePrefix), nil } diff --git a/resources/AppConfig.json b/resources/AppConfig.json index de68435..0fe2c77 100644 --- a/resources/AppConfig.json +++ b/resources/AppConfig.json @@ -1,8 +1,8 @@ { - "multicastNetworkInterface" : "Loopback Pseudo-Interface 1", + "multicastNetworkInterface" : "wlp1s0", "multicastAddress" : "224.66.66.1:15502", "multicastSecond" : 30, "domain" : "lightcontainerSB01", "unicastPort" : 58000, - "storagePath" : "C:\\Users\\ledou\\Documents\\sbe" + "storagePath" : "/home/benjamin/sbe" } \ No newline at end of file