diff --git a/markbase-core/src/webdav.rs b/markbase-core/src/webdav.rs index a3e2d49..9b64329 100644 --- a/markbase-core/src/webdav.rs +++ b/markbase-core/src/webdav.rs @@ -645,6 +645,9 @@ impl DavFileSystem for VfsDavFs { Ok(p) => p, Err(e) => return Box::pin(std::future::ready(Err(e))), }; + if self.vfs.exists(&full_path) { + return Box::pin(std::future::ready(Err(FsError::Exists))); + } match self.vfs.create_dir_all(&full_path, 0o755) { Ok(_) => Box::pin(std::future::ready(Ok(()))), Err(_) => Box::pin(std::future::ready(Err(FsError::NotImplemented))),