MCPcopy Create free account
hub / github.com/cosdata/cosdata / generate_key

Method generate_key

org/src/s3_client.rs:54–57  ·  view source on GitHub ↗
(&self, prefix: &str, filename: &str)

Source from the content-addressed store, hash-verified

52 }
53
54 fn generate_key(&self, prefix: &str, filename: &str) -> String {
55 let timestamp = Utc::now().format("%Y%m%d_%H%M%S");
56 format!("{}/{}__{}", prefix, timestamp, filename)
57 }
58
59 fn upload_file(&self, file_path: &str, prefix: &str) -> Result<String, Box<dyn Error>> {
60 let rt = tokio::runtime::Builder::new_current_thread()

Callers 1

upload_fileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected