Is there any easy way to check whether a path is valid? The file doesn\'t have to exist now, I\'m wondering if it could exist.
my current version is this:
You can also try the below:
import os if not os.path.exists(file_path): print "Path of the file is Invalid"