mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
refactor(jsonrpc): Rename copy_to_blobdir() to copy_to_blob_dir()
This commit is contained in:
@@ -349,8 +349,8 @@ impl CommandApi {
|
|||||||
Ok(ctx.get_blobdir().to_str().map(|s| s.to_owned()))
|
Ok(ctx.get_blobdir().to_str().map(|s| s.to_owned()))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Copy file to blobdir.
|
/// Copy file to blob dir.
|
||||||
async fn copy_to_blobdir(&self, account_id: u32, path: String) -> Result<PathBuf> {
|
async fn copy_to_blob_dir(&self, account_id: u32, path: String) -> Result<PathBuf> {
|
||||||
let ctx = self.get_context(account_id).await?;
|
let ctx = self.get_context(account_id).await?;
|
||||||
let file = Path::new(&path);
|
let file = Path::new(&path);
|
||||||
Ok(BlobObject::create_and_deduplicate(&ctx, file, file)?.to_abs_path())
|
Ok(BlobObject::create_and_deduplicate(&ctx, file, file)?.to_abs_path())
|
||||||
|
|||||||
Reference in New Issue
Block a user