SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
filer.copy: zero fileSize for directories
Chris Lu1e76fc994a44
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.goindex a5d29c451f..9d21c40efb 100644--- a/weed/command/filer_copy.go+++ b/weed/command/filer_copy.go@@ -213,11 +213,15 @@ func genFileCopyTask(fileOrDir string, destPath string, fileCopyTaskChan chan Fimode := fi.Mode()uid, gid := util.GetFileUidGid(fi)+ fileSize := fi.Size()+ if mode.IsDir() {+ fileSize = 0+ }fileCopyTaskChan <- FileCopyTask{sourceLocation: fileOrDir,destinationUrlPath: destPath,- fileSize: fi.Size(),+ fileSize: fileSize,fileMode: fi.Mode(),uid: uid,gid: gid,