Skip to content

Commit

Permalink
chore: attempting to get some buckets cleanup info
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWhitehead committed Sep 12, 2024
1 parent 871bc40 commit bfe6f10
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public static void doCleanup(String bucketName, Storage s, StorageControlClient
StorageLayout storageLayout =
ctrl.getStorageLayout(StorageLayoutName.of(parent.getProject(), parent.getBucket()));
List<DeleteResult> folderDeletes;
if (storageLayout.hasHierarchicalNamespace()) {
if (storageLayout.hasHierarchicalNamespace()
&& storageLayout.getHierarchicalNamespace().getEnabled()) {
folderDeletes =
StreamSupport.stream(ctrl.listFolders(parent).iterateAll().spliterator(), false)
.collect(Collectors.toList())
Expand Down

0 comments on commit bfe6f10

Please sign in to comment.