Added #getAttrsAtDir() with numLevels.