You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
final Function<Value, String> keyExtractor = new Function<Value, String>() {
@Override
public String apply(Value input) {
return input.getKey().substring(rootPath.length() + 1); **<---**
}
};
This guy needs to be changed so that it doesn't truncate key names. It might be cool if it ignored trailing slashes. Maybe something like this, but less dumb:
Set incomingKey = new HashSet(Arrays.asList(input.getKey().split("/")));
Set rootKey = new HashSet(Arrays.asList(rootPath.split("/")));
incomingKey.removeAll(rootKey);
return incomingKey.iterator().next();
The text was updated successfully, but these errors were encountered:
This guy needs to be changed so that it doesn't truncate key names. It might be cool if it ignored trailing slashes. Maybe something like this, but less dumb:
Set incomingKey = new HashSet(Arrays.asList(input.getKey().split("/")));
Set rootKey = new HashSet(Arrays.asList(rootPath.split("/")));
incomingKey.removeAll(rootKey);
return incomingKey.iterator().next();
The text was updated successfully, but these errors were encountered: