Nikita Borzykh
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
weed/filer/filer_delete_entry.go
|
|
@ -38,7 +38,7 @@ func (f *Filer) DeleteEntryMetaAndData(ctx context.Context, p util.FullPath, isR |
|
|
|
return nil |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
glog.V(0).Infof("delete directory %s: %v", p, err) |
|
|
|
glog.V(2).Infof("delete directory %s: %v", p, err) |
|
|
|
return fmt.Errorf("delete directory %s: %v", p, err) |
|
|
|
} |
|
|
|
} |
|
|
@ -76,7 +76,7 @@ func (f *Filer) doBatchDeleteFolderMetaAndData(ctx context.Context, entry *Entry |
|
|
|
} |
|
|
|
if lastFileName == "" && !isRecursive && len(entries) > 0 { |
|
|
|
// only for first iteration in the loop
|
|
|
|
glog.V(0).Infof("deleting a folder %s has children: %+v ...", entry.FullPath, entries[0].Name()) |
|
|
|
glog.V(2).Infof("deleting a folder %s has children: %+v ...", entry.FullPath, entries[0].Name()) |
|
|
|
return fmt.Errorf("%s: %s", MsgFailDelNonEmptyFolder, entry.FullPath) |
|
|
|
} |
|
|
|
|
|
|
|