Checking directories for debugging purposes