Added a simple max depth feature

This can be used to avoid huge startup times with big folders.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>