From c9f317f9311a5756e0a933090868df3f22c7534c Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sat, 19 Mar 2022 18:16:57 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20dans=20l'URL,=20\\=20to=20/=20car?= =?UTF-8?q?=20non=20accept=C3=A9=20par=20linux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/protocol/rules/readers/EraseFileRule.go | 3 +-- resources/AppConfig.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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