throw RuntimeExceptionFactory.io(vf.string("You can only access ls on a directory, or a container."), ctx.getCurrentAST(), ctx.getStackTrace());
}
Result<IValue> resRes = makeResult(getType(), resolved, ctx);
IListWriter w = ctx.getValueFactory().listWriter();
Type stringType = tf.stringType();
for (String elem : ctx.getResolverRegistry().listEntries(resolved.getURI())) {
w.append(resRes.add(makeResult(stringType, vf.string(elem), ctx)).getValue());
}