2021-03-27 00:11:22 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
|
def local_file_present(somepath) -> bool:
|
|
|
|
"""
|
2021-03-28 16:39:58 +02:00
|
|
|
check if a given local filepath exists
|
2021-03-27 00:11:22 +01:00
|
|
|
:return: true if present
|
|
|
|
"""
|
|
|
|
if not Path(somepath).is_file():
|
|
|
|
return False
|
|
|
|
|
|
|
|
return True
|