RAG-Integration-test / app /core /document_validator.py
Andrchest's picture
Single commit for Hugging Face
ab250f8
raw
history blame contribute delete
141 Bytes
import os
"""
Checks if the given path is valid and file exists
"""
def path_is_valid(path: str) -> bool:
return os.path.exists(path)