Created
January 9, 2020 08:54
-
-
Save Allwin12/c5132d963857b75907764c455e76410a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
my_abs_path = my_file.resolve(strict=True) | |
except FileNotFoundError: | |
# doesn't exist | |
else: | |
# exists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment