update getOBjectname
This commit is contained in:
parent
0dae4872b0
commit
cd43d66265
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user