fix path error

This commit is contained in:
lanbinshen 2026-02-12 17:49:15 +08:00
parent 02e4bef723
commit 219b332733
1 changed files with 2 additions and 2 deletions

View File

@ -181,8 +181,8 @@ impl Service<ServiceRequest> for FilesService {
for directory in &this.directories { for directory in &this.directories {
let path = directory.join(&path_on_disk); let path = directory.join(&path_on_disk);
match path.canonicalize() { match path.canonicalize() {
Ok(canonical_path) => { Ok(_) => {
found_path = Some(canonical_path); found_path = Some(path);
break; break;
} }
Err(err) => { Err(err) => {