#bar #detect #find #file #name #directories #look #up

app rdetect

Traverse up directories to find files/folders by name

6 releases

0.2.1 Nov 16, 2018
0.2.0 Nov 16, 2018
0.1.3 Nov 13, 2018
Download history 7/week @ 2019-01-16 1/week @ 2019-01-23 1/week @ 2019-01-30 1/week @ 2019-02-06 1/week @ 2019-02-20 12/week @ 2019-02-27 1/week @ 2019-03-06 55/week @ 2019-03-20 7/week @ 2019-03-27 6/week @ 2019-04-03 2/week @ 2019-04-10 2/week @ 2019-04-24

52 downloads per month

MIT license

4KB
67 lines

Detect

Traverse up diretories to look for files/folders by name.

An example, with the folder structure

./
├── bar/
├── baz/
├── file
└── foo/
   ├── norf/
   └── qux/
      └── file

running detect file from ./foo/qux would return ./foo/qux/file while running it in ./foo/norf would return ./file.

detect will try to traverse all the way up to /

Dependencies

~782KB
~12K SLoC