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

@@ -350,7 +350,7 @@ impl CommandApi {
} }
/// Copy file to blob dir. /// 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())