Checks if a file exists in the repository
(repo_path: &Path, file_name: &str)
| 82 | |
| 83 | /// Checks if a file exists in the repository |
| 84 | async 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 | /// |