[−][src]Function liboskar::walk_parallel::single_threaded::is_project_dir
pub fn is_project_dir(p: &str, name: &str) -> bool
Helper function to identify project directories. The heuristic is as follows:
- For
.stack-work
, look for a.cabal
file or apackage.yaml
file in the parent directory. - For
target
, look for aCargo.toml
file in the parent directory. - For
elm-stuff
, look forelm-package.json
in the parent directory. - For
build
,dist
, look for a.cabal
,setup.py
orcabal.project
file. - For
dist-newstyle
, look for a.cabal
orcabal.project
file. - For
nimcache
, look for a.nim
file in the parent directory. - Otherwise, if
setup.py
is in the parent directory and it ends with.egg-info
, return true. - In all other cases, return false, but still proceed into the directory to search files by extension.