MCPcopy Create free account
hub / github.com/BitVM/BitVM / upload_object

Method upload_object

bridge/src/client/data_store/ftp/ftp.rs:70–77  ·  view source on GitHub ↗
(
        &self,
        file_name: &str,
        contents: &str,
        file_path: Option<&str>,
    )

Source from the content-addressed store, hash-verified

68 }
69
70 async fn upload_object(
71 &self,
72 file_name: &str,
73 contents: &str,
74 file_path: Option<&str>,
75 ) -> Result<usize, String> {
76 lib::upload_object(&self.credentials, file_name, contents, file_path).await
77 }
78
79 async fn fetch_compressed_object(
80 &self,

Callers

nothing calls this directly

Calls 1

upload_objectFunction · 0.85

Tested by

no test coverage detected