]> git.r.bdr.sh - rbdr/page/blobdiff - src/file_finder.rs
Add static file copying
[rbdr/page] / src / file_finder.rs
index 105a99928a0df5fd9b04921f275df189d22bc776..bcd368dbf94089280c36010ac35f51c6b4618aca 100644 (file)
@@ -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() {