PyDocs

Nav

File and Directory Access

PathInfo

Protocol for path info objects, which support querying the file type.
Methods may return cached results.
Members of PathInfo

e

exists
Return True if the path is an existing file or directory, or any other kind of file; return False if the path doesn’t exist.

i

is_dir
Return True if the path is a directory, or a symbolic link pointing to a directory; return False if the path is (or points to) any other kind of file, or if it doesn’t exist.
is_file
Return True if the path is a file, or a symbolic link pointing to a file; return False if the path is (or points to) a directory or other non-file, or if it doesn’t exist.
is_symlink
Return True if the path is a symbolic link (even if broken); return False if the path is a directory or any kind of file, or if it doesn’t exist.
0 Examples
No examples for pathlib.types/PathInfo.
See Also
No see-alsos for pathlib.types/PathInfo
0 Notes
No notes for PathInfo