Returns whether the path is a directory or not. Args: path: string, path to a potential directory Returns: True, if the path is a directory; False otherwise
(path)
| 584 | |
| 585 | @tf_export("io.gfile.isdir") |
| 586 | def is_directory_v2(path): |
| 587 | """Returns whether the path is a directory or not. |
| 588 | |
| 589 | Args: |
| 590 | path: string, path to a potential directory |
| 591 | |
| 592 | Returns: |
| 593 | True, if the path is a directory; False otherwise |
| 594 | """ |
| 595 | status = c_api_util.ScopedTFStatus() |
| 596 | return pywrap_tensorflow.IsDirectory(compat.as_bytes(path), status) |
| 597 | |
| 598 | |
| 599 | @tf_export(v1=["gfile.ListDirectory"]) |
no test coverage detected