PyDocs

Nav

File and Directory Access

exists

os.path

function (source)
  • exists(path)
Test whether a path exists.  Returns False for broken symbolic links
Changed in 3.3, 3.6
  • 3.3: path can now be an integer: True is returned if it is an open file descriptor, False otherwise.
  • 3.6: Accepts a path-like object.
0 Examples
No examples for os.path/exists.
See Also
No see-alsos for os.path/exists
0 Notes
No notes for exists