[−][src]Function liboskar::walk_parallel::single_threaded::is_artifact
pub fn is_artifact(
path_str: &str,
full_path: &str,
metadata: &Metadata,
vimtags: bool,
gitignore: &Option<RegexSet>
) -> bool
Helper function to determine whether a path points
Rules:
- if the file extension of that is that of an artifact, return true
- if the file is executable and included in the .gitignore, return true
- return false otherwise
Explanation of extensions:
.a
,.la
,.o
,.lo
,.so.*
:.S
: assembly.ll
,.bc
: llvm.keter
: keter.d
: make.c
: ATS.rlib
,.crate
: rust.hi
,.hc
,.chi
,.dyn_hi
,.dyn_o
,.p_hi
,.p_o
,.prof
,.dump-.*
,.tix
,.mix
,.pix
: GHC.webapp
: Web app manifest.js.externs
,.jsexe
,.min.js
:.ibc
: Idris.toc
,.aux
,.fdb_latexmk
,.fls
,.bbl
,.bbg
: TeX.egg-info
,.whl
,.pyc
: python.js_a
,.js_hi
,.js_o
: GHCJS.vmb
: Vim.crx
: chrome.elmo
,.elmi
: Elm.mod
: FORTRAN.ji
,.jld
: julia.exe
: Windows executable.sandbox.config
: Cabal sandbox configuration.eventlog
: GHC event log.ipa
: iOS applicative archive.ttc
: Blodwen compiled module.chs.h
,.chi
: c2hs