Solve the sub directories problem