diff --git a/dump-file.py b/dump-file.py index 3b42e54..1f106f9 100755 --- a/dump-file.py +++ b/dump-file.py @@ -15,14 +15,21 @@ def read_uint32(data, offset): return struct.unpack_from('= 7: + for field in fields[3:]: + if field.isdigit(): + return int(field) + + _logger.debug("ls output: %s", output) + raise RuntimeError("Cannot find filesize for path %s" % path) @contextmanager def laf_open_ro(comm, filename):