MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / file_exists

Function file_exists

src/repository.rs:84–87  ·  view source on GitHub ↗

Checks if a file exists in the repository

(repo_path: &Path, file_name: &str)

Source from the content-addressed store, hash-verified

82
83/// Checks if a file exists in the repository
84async fn file_exists(repo_path: &Path, file_name: &str) -> bool {
85 let file_path = repo_path.join(file_name);
86 tokio::fs::metadata(&file_path).await.is_ok()
87}
88
89/// Cleans a project name to be suitable for Docker tags
90///

Callers 1

detect_stackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected