Skip to content

Commit

Permalink
Merge pull request #1524 from 0chain/feat/num-objects
Browse files Browse the repository at this point in the history
Add number of files
  • Loading branch information
dabasov authored Jan 11, 2025
2 parents ec7d667 + 4c8072b commit 5f54133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/go/0chain.net/blobbercore/handler/storage_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ func (fsh *StorageHandler) ListEntities(ctx context.Context, r *http.Request) (*
dirref = r
if path == "/" {
dirref.Size = allocationObj.BlobberSizeUsed
dirref.NumFiles = int64(allocationObj.NumObjects)
}
}

Expand Down
1 change: 1 addition & 0 deletions code/go/0chain.net/blobbercore/reference/ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ type Ref struct {
SignatureVersion int `gorm:"column:signature_version" json:"signature_version" filelist:"signature_version"`
EncryptionVersion int `gorm:"column:encryption_version" json:"encryption_version" filelist:"encryption_version"`
IsEmpty bool `gorm:"-" dirlist:"is_empty"`
NumFiles int64 `gorm:"-" dirlist:"num_files"`
HashToBeComputed bool `gorm:"-"`
prevID int64 `gorm:"-"`
}
Expand Down

0 comments on commit 5f54133

Please sign in to comment.