Handle sub directories