Compare commits

...

1 Commits

Author SHA1 Message Date
0dae4872b0 remove: check zero size 2025-05-30 19:47:45 +08:00
2 changed files with 1 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@kevisual/oss",
"version": "0.0.11",
"version": "0.0.12",
"main": "dist/index.js",
"scripts": {
"build": "tsup",

View File

@@ -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') {