How to Check a File or Directory Exists in Python
If it doesn't matter it is a file or directory you can use os.path.exists():    #...
Tags: python, basics