support directory_levels (see issue #151)

Only for Local adapter right now, though support should be easy to add for other adapters.