mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-22 05:54:24 +02:00
1 parent
dc19bc2ace
commit
0ca9d89589
1 file changed
+1
-1
@@ -315,7 +315,7 @@ func (s3a *S3ApiServer) isDirectoryAllEmpty(filerClient filer_pb.SeaweedFilerCli
|
|||||||
currentDir := parentDir + "/" + name
|
currentDir := parentDir + "/" + name
|
||||||
var startFrom string
|
var startFrom string
|
||||||
var isExhausted bool
|
var isExhausted bool
|
||||||
for fileCounter == 0 && !isExhausted {
|
for fileCounter == 0 && !isExhausted && err == nil {
|
||||||
err = filer_pb.SeaweedList(filerClient, currentDir, "", func(entry *filer_pb.Entry, isLast bool) error {
|
err = filer_pb.SeaweedList(filerClient, currentDir, "", func(entry *filer_pb.Entry, isLast bool) error {
|
||||||
if entry.IsDirectory {
|
if entry.IsDirectory {
|
||||||
subDirs = append(subDirs, entry.Name)
|
subDirs = append(subDirs, entry.Name)
|
||||||
|
|||||||
Reference in new issue
Block a user