Whether this path exists. This method normally follows symlinks; to check whether a symlink exists, add the argument follow_symlinks=False.
(self, *, follow_symlinks=True)
| 859 | return os.lstat(self) |
| 860 | |
| 861 | def exists(self, *, follow_symlinks=True): |
| 862 | """ |
| 863 | Whether this path exists. |
| 864 | |
| 865 | This method normally follows symlinks; to check whether a symlink exists, |
| 866 | add the argument follow_symlinks=False. |
| 867 | """ |
| 868 | if follow_symlinks: |
| 869 | return os.path.exists(self) |
| 870 | return os.path.lexists(self) |
| 871 | |
| 872 | def is_dir(self, *, follow_symlinks=True): |
| 873 | """ |