hanahmily commented on code in PR #841:
URL: 
https://github.com/apache/skywalking-banyandb/pull/841#discussion_r2502753123


##########
banyand/backup/restore.go:
##########
@@ -253,10 +253,11 @@ func cleanEmptyDirs(dir, stopDir string) {
                if dir == stopDir || dir == "." {
                        break
                }
-               entries, err := os.ReadDir(dir)
-               if err != nil || len(entries) > 0 {
+               files, err := getAllFiles(dir)
+               if err != nil || len(files) > 0 {

Review Comment:
   The new behavior is what we expect.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to