1 2 3 4 5 6 7 8 9 10 11 12 13
# -*- coding: utf-8 -*- from pathlib import Path def local_file_present(somepath) -> bool: """ check if a given local filepath exists :return: true if present """ if not Path(somepath).is_file(): return False return True