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

Function is_directory_v2

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

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)

Source from the content-addressed store, hash-verified

584
585@tf_export("io.gfile.isdir")
586def 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"])

Callers 1

is_directoryFunction · 0.85

Calls 1

IsDirectoryMethod · 0.45

Tested by

no test coverage detected