Changement dans l'URL, \\ to / car non accepté par linux
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user