Check if path is a directory. Args: path: Path to check Returns: True if path is a directory, False otherwise
(self, path: Union[str, Path])
| 362 | return False |
| 363 | |
| 364 | def is_dir(self, path: Union[str, Path]) -> bool: |
| 365 | """ |
| 366 | Check if path is a directory. |
| 367 | |
| 368 | Args: |
| 369 | path: Path to check |
| 370 | |
| 371 | Returns: |
| 372 | True if path is a directory, False otherwise |
| 373 | """ |
| 374 | try: |
| 375 | path = self._validate_path(path) |
| 376 | return path.is_dir() |
| 377 | except FilesystemAccessError: |
| 378 | return False |
| 379 | |
| 380 | def list_dir(self, path: Union[str, Path] = ".") -> List[str]: |
| 381 | """ |
no test coverage detected