Returns a list of entries contained within a directory. The list is in arbitrary order. It does not contain the special entries "." and "..". Args: dirname: string, path to a directory Returns: [filename1, filename2, ... filenameN] as strings Raises: errors.NotFoundError if
(dirname)
| 598 | |
| 599 | @tf_export(v1=["gfile.ListDirectory"]) |
| 600 | def list_directory(dirname): |
| 601 | """Returns a list of entries contained within a directory. |
| 602 | |
| 603 | The list is in arbitrary order. It does not contain the special entries "." |
| 604 | and "..". |
| 605 | |
| 606 | Args: |
| 607 | dirname: string, path to a directory |
| 608 | |
| 609 | Returns: |
| 610 | [filename1, filename2, ... filenameN] as strings |
| 611 | |
| 612 | Raises: |
| 613 | errors.NotFoundError if directory doesn't exist |
| 614 | """ |
| 615 | return list_directory_v2(dirname) |
| 616 | |
| 617 | |
| 618 | @tf_export("io.gfile.listdir") |
no test coverage detected