Fix FakeLs import: use dav_server::fakels::FakeLs

Correct import path is fakels module (not ls).
All builds passing, tests: 6/6
This commit is contained in:
Warren
2026-05-18 12:02:54 +08:00
parent beeb466c7a
commit 9bf6c3c08a

View File

@@ -1,5 +1,5 @@
use std::path::PathBuf;
use dav_server::{DavHandler, localfs::LocalFs, ls::FakeLs};
use dav_server::{DavHandler, localfs::LocalFs, fakels::FakeLs};
pub struct MarkBaseWebDAV {
user_id: String,
@@ -19,7 +19,7 @@ impl MarkBaseWebDAV {
DavHandler::builder()
.filesystem(LocalFs::new(&mount_point, false, false, false))
.locksystem(Box::new(FakeLs::new()))
.locksystem(FakeLs::new())
.strip_prefix("/webdav")
.build_handler()
}