Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

drive: Fix comment

Nick Craig-Woode40b09fe6137
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")