fix(vfs): V-01 — copy dispatches to CarrierFs in carrier mode

This commit is contained in:
2026-09-19 00:16:04 +02:00
parent 533764487a
commit 151fdba09d
3 changed files with 335 additions and 0 deletions
+8
View File
@@ -952,11 +952,19 @@ impl DavFileSystem for SanctumFs {
}
fn copy<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'a, ()> {
if let Some(ref cfs) = self.carrier_fs {
return cfs.copy(from, to);
}
Box::pin(async move {
self.touch();
let from_str = Self::path_to_str(from);
let to_str = Self::path_to_str(to);
if from_str == to_str {
return Ok(());
}
let node = self.resolve_path(&from_str)?.ok_or(FsError::NotFound)?;
if node.is_dir {