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

Function file_exists

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

Determines whether a path exists or not. Args: filename: string, a path Returns: True if the path exists, whether it's a file or a directory. False if the path does not exist and there are no filesystem errors. Raises: errors.OpError: Propagates any errors reported by the Fi

(filename)

Source from the content-addressed store, hash-verified

247
248@tf_export(v1=["gfile.Exists"])
249def file_exists(filename):
250 """Determines whether a path exists or not.
251
252 Args:
253 filename: string, a path
254
255 Returns:
256 True if the path exists, whether it's a file or a directory.
257 False if the path does not exist and there are no filesystem errors.
258
259 Raises:
260 errors.OpError: Propagates any errors reported by the FileSystem API.
261 """
262 return file_exists_v2(filename)
263
264
265@tf_export("io.gfile.exists")

Callers

nothing calls this directly

Calls 1

file_exists_v2Function · 0.85

Tested by

no test coverage detected