refactor(jsonrpc): Rename copy_to_blobdir() to copy_to_blob_dir()

This commit is contained in:
iequidoo
2025-03-18 00:51:07 -03:00
committed by iequidoo
parent 14a7e39625
commit ea5f778cc0

View File

@@ -349,8 +349,8 @@ impl CommandApi {
Ok(ctx.get_blobdir().to_str().map(|s| s.to_owned()))
}
/// Copy file to blobdir.
async fn copy_to_blobdir(&self, account_id: u32, path: String) -> Result<PathBuf> {
/// Copy file to blob dir.
async fn copy_to_blob_dir(&self, account_id: u32, path: String) -> Result<PathBuf> {
let ctx = self.get_context(account_id).await?;
let file = Path::new(&path);
Ok(BlobObject::create_and_deduplicate(&ctx, file, file)?.to_abs_path())