TIME_FORMAT = "%H:%M:%S %d-%b-%Y"
def get_filenode_metadata(filenode):
- metadata = {'size': filenode.get_size(),
- 'mutable': filenode.is_mutable()}
+ metadata = {'mutable': filenode.is_mutable()}
if metadata['mutable']:
mutable_type = filenode.get_version()
assert mutable_type in (SDMF_VERSION, MDMF_VERSION)
else:
file_format = "CHK"
metadata['format'] = file_format
+ if filenode.get_size() is not None:
+ metadata['size'] = filenode.get_size()
return metadata
class IOpHandleTable(Interface):