aboutsummaryrefslogtreecommitdiffstats
path: root/src/blimp/misc.py
blob: 528ed5bc98b96e2ddd42ea6b997ccebadc00b1d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3
# -*- 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