surveilling-surveillance/detection/data/util.py

7 lines
119 B
Python
Raw Normal View History

2021-05-20 20:20:48 +00:00
from pathlib import Path, PosixPath
def _is_path(file_path):
return isinstance(file_path, (str, PosixPath))