check if directory has python file 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"))