checking if directory exists python code example
Example: python check if folder exists
import os
print(os.path.isdir("/home/el"))
print(os.path.exists("/home/el/myfile.txt"))
import os
print(os.path.isdir("/home/el"))
print(os.path.exists("/home/el/myfile.txt"))