This commit is contained in:
Kovid Goyal 2013-10-08 22:07:52 +05:30
parent efb83eb6fc
commit 9e9abf640a

View File

@ -497,7 +497,7 @@ class Container(object): # {{{
def filesize(self, name): def filesize(self, name):
if name in self.dirtied: if name in self.dirtied:
self.commit_item(name) self.commit_item(name, keep_parsed=True)
path = self.name_to_abspath(name) path = self.name_to_abspath(name)
return os.path.getsize(path) return os.path.getsize(path)