mc removes incomplete downloads .part.minio when rm is invoked with --incomplete flag (#1769)

This commit is contained in:
Anis Elleuch
2016-07-26 14:20:35 -07:00
committed by Harshavardhana
parent acf933646b
commit 429a0d00af
-3
View File
@@ -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)