surveilling-surveillance/detection/data/util.py
2021-05-20 13:22:04 -07:00

6 lines
119 B
Python

from pathlib import Path, PosixPath
def _is_path(file_path):
return isinstance(file_path, (str, PosixPath))