MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / list_directory

Function list_directory

tensorflow/python/lib/io/file_io.py:600–615  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

598
599@tf_export(v1=["gfile.ListDirectory"])
600def 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")

Callers 1

walk_v2Function · 0.85

Calls 1

list_directory_v2Function · 0.85

Tested by

no test coverage detected