From 781282897ad943f6d22ace85357332f4cb50ed75 Mon Sep 17 00:00:00 2001 From: belltoy Date: Sat, 13 Jan 2018 08:37:27 +0000 Subject: [PATCH] fix directory entry path --- src/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs.rs b/src/fs.rs index c49ca8546..d7aa4d174 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -138,7 +138,7 @@ impl Responder for Directory { for entry in self.path.read_dir()? { if self.can_list(&entry) { let entry = entry.unwrap(); - let p = match entry.path().strip_prefix(&self.base) { + let p = match entry.path().strip_prefix(&self.path) { Ok(p) => base.join(p), Err(_) => continue };