support for "rm" of objects and buckets

This commit is contained in:
Krishna Srinivas
2015-10-19 15:11:59 -07:00
parent 2a3b201457
commit b4c78a33ff
7 changed files with 242 additions and 0 deletions
+5
View File
@@ -191,6 +191,11 @@ func (f *fsClient) GetObject(offset, length int64) (io.ReadCloser, int64, *probe
return body, length, nil
}
func (f *fsClient) Remove() *probe.Error {
err := os.Remove(f.Path)
return probe.NewError(err)
}
// List - list files and folders
func (f *fsClient) List(recursive bool) <-chan client.ContentOnChannel {
contentCh := make(chan client.ContentOnChannel)