Skip to content

Conversation

raynae
Copy link
Contributor

@raynae raynae commented Jan 25, 2018

Took a stab at #172, will this do the trick?

@@ -971,6 +973,7 @@ def inspect(self):
self._inspect[name] = {
'hash': m.hexdigest(),
'file': str(path),
'size': get_size(path),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the inspect mechanism should store the raw size here as an integer number of bytes. The KB/GB/MB display logic should be handled at display time, maybe as a custom template filter.

@simonw simonw closed this Feb 6, 2019
@raynae raynae deleted the filesize branch March 22, 2019 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants