Updated lock and fixed dir list

This commit is contained in:
int 80h
2020-12-24 09:05:00 -05:00
parent ebc229643a
commit ddecdbccb3
2 changed files with 122 additions and 101 deletions

View File

@@ -99,7 +99,7 @@ async fn get_content(path: PathBuf, u: url::Url) -> Result<String, io::Error> {
if m.is_dir() {
dirs.push(format!("=> {}/ {}/\r\n", ep, p.display()));
} else {
files.push(format!("=> {}/ {}\r\n", ep, p.display()));
files.push(format!("=> {} {}\r\n", ep, p.display()));
}
}
}