Checking directories.