This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 00258a24b doc(services/onedrive): add a comment about onedrive's 
writer  (#6120)
00258a24b is described below

commit 00258a24b12178d83ee362837533d78856ae03f2
Author: Erick Guan <[email protected]>
AuthorDate: Tue Apr 29 03:58:02 2025 +0200

    doc(services/onedrive): add a comment about onedrive's writer  (#6120)
    
    doc(services/onedrive): add a comment about onedrive's writer implementation
---
 core/src/services/onedrive/writer.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/src/services/onedrive/writer.rs 
b/core/src/services/onedrive/writer.rs
index 450f2d62f..4ce8cb5bb 100644
--- a/core/src/services/onedrive/writer.rs
+++ b/core/src/services/onedrive/writer.rs
@@ -45,6 +45,9 @@ impl OneDriveWriter {
     }
 }
 
+// OneDrive requires multipart writes to specify the total size of the file.
+// While OpenDAL supports multiple writes, due to OneDrive's limitation, we 
opt to
+// use `OneShotWrite` instead of `MultipartWrite`.
 impl oio::OneShotWrite for OneDriveWriter {
     async fn write_once(&self, bs: Buffer) -> Result<Metadata> {
         let size = bs.len();

Reply via email to