Skip to content

Commit

Permalink
Use status.exists() in docs example
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Dec 11, 2024
1 parent 2bb6221 commit 923542b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1189,8 +1189,10 @@ Querying file type and status
... print('symlink')
... elif p.status.is_dir():
... print('directory')
... elif p.status.exists():
... print('something else')
... else:
... print('other')
... print('not found')
...
directory

Expand Down

0 comments on commit 923542b

Please sign in to comment.