smol bot
Diffstat (limited to 'src/bot/search.rs')
| -rw-r--r-- | src/bot/search.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/bot/search.rs b/src/bot/search.rs index d7b4364..5fdcfb4 100644 --- a/src/bot/search.rs +++ b/src/bot/search.rs @@ -121,9 +121,13 @@ pub struct Data { } pub fn dir(x: u64) -> Option<impl Iterator<Item = PathBuf>> { - std::fs::read_dir(Path::new("repo").join(super::SPECIAL[&x].d)) - .ok() - .map(|x| x.filter_map(Result::ok).map(move |f| f.path())) + std::fs::read_dir( + Path::new("repos") + .join("cd8a83f57821034") + .join(super::SPECIAL[&x].d), + ) + .ok() + .map(|x| x.filter_map(Result::ok).map(move |f| f.path())) } pub fn files() -> impl Iterator<Item = (PathBuf, u64)> { |