To check if a path is a Directory in Python you can use the snippet below.
Sample Python
import os print(os.path.isdir("/myfolder/folder1"))
To check if a path is a Directory in Python you can use the snippet below.
import os print(os.path.isdir("/myfolder/folder1"))
To check if Folder exists in Python you can use the snippet below.
import os print(os.path.exists("/myfolder/folder1"))