-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return the size of each file on ipfs add
#4008
Comments
@diasdavid would you want something returned for directories and symlinks? |
@whyrusleeping I feel it is useful to have the 'size' for those. Essentially I just grab the cumulative size https://github.com/ipld/js-ipld-dag-pb/blob/master/src/dag.proto.js#L13 |
@diasdavid alright, and you just want a |
Let's do a string because you know |
👍 on including that, both the |
It might be worth migrating away from returning numbers in JSON, to prevent stuff like #3354 |
Which issue do you mean? 4008 is this one here |
Sorry #3354 |
@lgierth I think we should try to migrate numbers in our api to be strings. It would be a breaking change, but i think its pretty important. This is probably worth opening its own issue over |
Hey all! Can this be closed with #4082 being merged? |
ipfs/kubo#4008 (comment) Also the decription is changed as it returns resulting IPFS node size according to ipfs/kubo#4082
@whyrusleeping would you be ok with adding one more value on the response of an
ipfs add
? The respective file size.This would enable us to greatly reduce the bundle size of
ipfs-api/add
, which is what most users need.The text was updated successfully, but these errors were encountered: