update getOBjectname

This commit is contained in:
熊潇 2025-06-07 12:09:09 +08:00
parent 0dae4872b0
commit cd43d66265

View File

@ -152,7 +152,14 @@ export class OssBase implements OssBaseOperation {
const obj = await this.client.fPutObject(bucketName, `${this.prefix}${objectName}`, filePath, metaData); const obj = await this.client.fPutObject(bucketName, `${this.prefix}${objectName}`, filePath, metaData);
return obj as any; return obj as any;
} }
/**
*
* @param objectName
* @returns
*/
async getObjectName(objectName: string) {
return `${this.prefix}${objectName}`;
}
async statObject(objectName: string, checkFile = true) { async statObject(objectName: string, checkFile = true) {
const bucketName = this.bucketName; const bucketName = this.bucketName;
try { try {