mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-16 08:45:22 +01:00
simplify
This commit is contained in:
1 parent
1cd8a591b9
commit
de24b2e42c
2 files changed
+6
-8
No files matched your search
@@ -305,7 +305,9 @@ func (fs *FilerServer) DeleteEntry(ctx context.Context, req *filer_pb.DeleteEntr
|
||||
if req.DeleteEmptyParentDirectories {
|
||||
stopAtPath := util.FullPath(req.DeleteEmptyParentDirectoriesStopPath)
|
||||
if stopAtPath == "" {
|
||||
stopAtPath = util.FullPath(fs.filer.DirBucketsPath)
|
||||
// Default to root to allow cleanup for non-S3 paths
|
||||
// S3 API clients provide a specific bucket stop path
|
||||
stopAtPath = "/"
|
||||
}
|
||||
|
||||
// Clean up empty parent directories starting from req.Directory
|
||||
|
||||
Reference in new issue
Block a user