python os path exists from current directory 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"))