|
@ -225,9 +225,15 @@ func Remove(filerClient FilerClient, parentDirectoryPath, name string, isDeleteD |
|
|
IgnoreRecursiveError: ignoreRecursiveErr, |
|
|
IgnoreRecursiveError: ignoreRecursiveErr, |
|
|
IsFromOtherCluster: isFromOtherCluster, |
|
|
IsFromOtherCluster: isFromOtherCluster, |
|
|
}); err != nil { |
|
|
}); err != nil { |
|
|
|
|
|
if strings.Contains(err.Error(), ErrNotFound.Error()){ |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
return err |
|
|
return err |
|
|
} else { |
|
|
} else { |
|
|
if resp.Error != "" { |
|
|
if resp.Error != "" { |
|
|
|
|
|
if strings.Contains(resp.Error, ErrNotFound.Error()){ |
|
|
|
|
|
return nil |
|
|
|
|
|
} |
|
|
return errors.New(resp.Error) |
|
|
return errors.New(resp.Error) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|