Add readDir primop

supersedes #235