python: check if file exists
from os.path import exists file_exists = exists(path_to_file)
from pathlib import Path path = Path(path_to_file) path.is_file()
from os.path import exists file_exists = exists(path_to_file)
from pathlib import Path path = Path(path_to_file) path.is_file()