From e40b09fe6137d11e09b9194a887f1055069c90c1 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 13 Jul 2014 09:30:14 +0100 Subject: [PATCH] drive: Fix comment --- drive/drive.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drive/drive.go b/drive/drive.go index 5aff8eff1..bb719825d 100644 --- a/drive/drive.go +++ b/drive/drive.go @@ -796,7 +796,9 @@ func (fs *FsDrive) Precision() time.Duration { // Purge deletes all the files and the container // -// Returns an error if it isn't empty +// Optional interface: Only implement this if you have a way of +// deleting all the files quicker than just running Remove() on the +// result of List() func (f *FsDrive) Purge() error { if f.root == "" { return fmt.Errorf("Can't purge root directory")