Ensuring we only log the directory summary when there is a directory.