diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-04-16 13:46:46 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-04-16 13:46:46 +0200 |
| commit | ea5297364f8a1b2c4e684140024b60a83b087b50 (patch) | |
| tree | 788cabbe2d660ec004009017eb793426d205cf8f /src/file_finder.rs | |
| parent | 4fd89b808cabc8afb0d75b9700be1da96989c4b7 (diff) | |
Add static file copying
Diffstat (limited to 'src/file_finder.rs')
| -rw-r--r-- | src/file_finder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_finder.rs b/src/file_finder.rs index 105a999..bcd368d 100644 --- a/src/file_finder.rs +++ b/src/file_finder.rs @@ -13,7 +13,7 @@ fn find_files_recursively(root_path: &PathBuf, directory_path: &PathBuf) -> Vec< for entry in entries { let path = entry.unwrap().path(); let relative_path = path.strip_prefix(&root_path).unwrap(); - if relative_path.starts_with(".git") { + if relative_path.starts_with(".git") || relative_path.starts_with(".gitignore") { continue; } if path.is_dir() { |