Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JCLOUDS-1371: JCLOUDS-1488: optimize fs prefix #161

Merged
merged 1 commit into from
Jan 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,14 @@ public Iterable<String> getBlobKeysInsideContainer(String container, String pref

File containerFile = openFolder(container);
final int containerPathLength = containerFile.getAbsolutePath().length() + 1;
if (prefix != null) {
// prefix may end with a partial directory so only list the complete parent
int index = prefix.lastIndexOf('/');
if (index != -1) {
containerFile = new File(containerFile, prefix.substring(0, index + 1));
}
}

populateBlobKeysInContainer(containerFile, blobNames, prefix, new Function<String, String>() {
@Override
public String apply(String string) {
Expand Down