fix(vfs): V-01 — copy dispatches to CarrierFs in carrier mode
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user