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

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

4 thought on “How to check if Folder exists in Python”

Leave a Reply