Notvaliddirectory python code example Example: python check if folder exists os.path.isdir("/home/el")