remove: check zero size
This commit is contained in:
@@ -157,9 +157,6 @@ export class OssBase implements OssBaseOperation {
|
||||
const bucketName = this.bucketName;
|
||||
try {
|
||||
const obj = await this.client.statObject(bucketName, `${this.prefix}${objectName}`);
|
||||
if (obj && checkFile && obj.size === 0) {
|
||||
return null;
|
||||
}
|
||||
return obj;
|
||||
} catch (e) {
|
||||
if (e.code === 'NotFound') {
|
||||
|
||||
Reference in New Issue
Block a user