Function<ListContainerOptions, ListBucketOptions> {
public ListBucketOptions apply(ListContainerOptions from) {
checkNotNull(from, "set options to instance NONE instead of passing null");
ListBucketOptions httpOptions = new ListBucketOptions();
if (!from.isRecursive()) {
httpOptions.delimiter("/");
}
if (from.getDir() != null) {// TODO unit test
String path = from.getDir();
if (!path.endsWith("/"))
path = path + "/";