mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 10:57:53 +08:00
file size support set file length
use Attr.FileSize and TotalChunkSize to determine file size
This commit is contained in:
@@ -70,9 +70,9 @@ func duTraverseDirectory(writer io.Writer, filerClient filer_pb.FilerClient, dir
|
||||
}
|
||||
} else {
|
||||
fileBlockCount = uint64(len(entry.Chunks))
|
||||
fileByteCount = filer2.TotalSize(entry.Chunks)
|
||||
blockCount += uint64(len(entry.Chunks))
|
||||
byteCount += filer2.TotalSize(entry.Chunks)
|
||||
fileByteCount = filer2.FileSize(entry)
|
||||
blockCount += fileBlockCount
|
||||
byteCount += fileByteCount
|
||||
}
|
||||
|
||||
if name != "" && !entry.IsDirectory {
|
||||
|
Reference in New Issue
Block a user