Check the directory structure