How to check if Folder exists in Python

To check if Folder exists in Python you can use the snippet below.

import os
print(os.path.exists("/myfolder/folder1"))

Please Share us:
Please rate this snippet

4 thoughts on “How to check if Folder exists in Python

Leave a Reply