MCPcopy Create free account
hub / github.com/conda/constructor / validate_file_path

Function validate_file_path

constructor/preconda.py:378–382  ·  view source on GitHub ↗
(file_path: str)

Source from the content-addressed store, hash-verified

376 """
377
378 def validate_file_path(file_path: str) -> Path:
379 fpath = Path(file_path)
380 if not fpath.exists():
381 raise FileNotFoundError(f"File {file_path} does not exist.")
382 return fpath
383
384 if not extra_files:
385 return []

Callers 1

copy_extra_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected