Crates.io | rdetect |
lib.rs | rdetect |
version | 0.2.1 |
source | src |
created_at | 2018-11-12 21:12:34.531956 |
updated_at | 2018-11-16 18:28:57.497404 |
description | Traverse up directories to find files/folders by name |
homepage | |
repository | https://github.com/ikornaselur/detect |
max_upload_size | |
id | 96336 |
size | 4,725 |
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 /