os.path.exists will also return True if there’s a regular file with that name.
os.path.isdir will only return True if that path exists and is a directory, or a symbolic link to a directory.
os.path.exists will also return True if there’s a regular file with that name.
os.path.isdir will only return True if that path exists and is a directory, or a symbolic link to a directory.