More specific path checks (file vs directory).