Skip to content

Commit

Permalink
Merge pull request #46 from quantifyearth/mwd-workaround-for-dot-shar…
Browse files Browse the repository at this point in the history
…k-files

Ignore .shark files in wildcarding
  • Loading branch information
mdales authored May 1, 2024
2 parents 62e86f5 + c922220 commit 301cb33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/md.ml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ let get_paths ~fs (Obuilder.Store_spec.Store ((module Store), store)) hash
(fun (path : string) ->
match path with
| "." | ".." -> None
| p -> Some (Fpath.add_seg shark_destination_path p))
| p -> (
match Filename.extension p with
| ".shark" -> None
| _ -> Some (Fpath.add_seg shark_destination_path p)))
files )
in
List.map find_files_in_store outputs
Expand Down

0 comments on commit 301cb33

Please sign in to comment.