Browse Source

avoid reporting error when it is a user request error

pull/2427/head
Chris Lu 3 years ago
parent
commit
f5824f369c
  1. 2
      weed/filer/filer_delete_entry.go

2
weed/filer/filer_delete_entry.go

@ -80,7 +80,7 @@ func (f *Filer) doBatchDeleteFolderMetaAndData(ctx context.Context, entry *Entry
}
if lastFileName == "" && !isRecursive && len(entries) > 0 {
// only for first iteration in the loop
glog.Errorf("deleting a folder %s has children: %+v ...", entry.FullPath, entries[0].Name())
glog.V(0).Infof("deleting a folder %s has children: %+v ...", entry.FullPath, entries[0].Name())
return nil, nil, fmt.Errorf("%s: %s", MsgFailDelNonEmptyFolder, entry.FullPath)
}

Loading…
Cancel
Save