Returns whether the path is a directory or not. Args: dirname: string, path to a potential directory Returns: True, if the path is a directory; False otherwise
(dirname)
| 571 | |
| 572 | @tf_export(v1=["gfile.IsDirectory"]) |
| 573 | def is_directory(dirname): |
| 574 | """Returns whether the path is a directory or not. |
| 575 | |
| 576 | Args: |
| 577 | dirname: string, path to a potential directory |
| 578 | |
| 579 | Returns: |
| 580 | True, if the path is a directory; False otherwise |
| 581 | """ |
| 582 | return is_directory_v2(dirname) |
| 583 | |
| 584 | |
| 585 | @tf_export("io.gfile.isdir") |
no test coverage detected