1
mirror of https://github.com/rclone/rclone synced 2024-10-20 06:58:02 +02:00

drive: Fix comment

This commit is contained in:
Nick Craig-Wood 2014-07-13 09:30:14 +01:00
parent eb2b4ea8aa
commit e40b09fe61

View File

@ -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")