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)
| 247 | |
| 248 | @tf_export(v1=["gfile.Exists"]) |
| 249 | def 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") |
nothing calls this directly
no test coverage detected