bl-imp/src/blimp/misc.py

14 lines
256 B
Python

# -*- 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