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

Function is_directory

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

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)

Source from the content-addressed store, hash-verified

571
572@tf_export(v1=["gfile.IsDirectory"])
573def 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")

Callers 2

list_directory_v2Function · 0.85
walk_v2Function · 0.85

Calls 1

is_directory_v2Function · 0.85

Tested by

no test coverage detected