mc removes incomplete downloads .part.minio when rm is invoked with --incomplete flag (#1769)
This commit is contained in:
committed by
Harshavardhana
parent
acf933646b
commit
429a0d00af
@@ -368,9 +368,6 @@ func (f *fsClient) Get() (io.Reader, *probe.Error) {
|
||||
|
||||
// Remove - remove the path.
|
||||
func (f *fsClient) Remove(incomplete bool) *probe.Error {
|
||||
if incomplete {
|
||||
return nil
|
||||
}
|
||||
e := os.Remove(f.PathURL.Path)
|
||||
err := f.toClientError(e, f.PathURL.Path)
|
||||
return err.Trace(f.PathURL.Path)
|
||||
|
||||
Reference in New Issue
Block a user