from os.path import exists file_exists = exists(path_to_file) print(file_exists) # Returns True or False