aboutsummaryrefslogtreecommitdiffstats
path: root/src/blimp/misc.py
blob: 7242e3f7b965e8c566e87b5743f92f2111567426 (plain)
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