Skip to content

Instantly share code, notes, and snippets.

@sagarun
Created October 12, 2015 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagarun/6af9f8902fa2e0288c81 to your computer and use it in GitHub Desktop.
Save sagarun/6af9f8902fa2e0288c81 to your computer and use it in GitHub Desktop.
@property
def requiredSpace(self):
byte_count = sum(m.size for m in self.archive.getmembers())
return byte_count / (1024.0 * 1024.0) # FIXME: Size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment