20 |
"""Generate and process aggregated backup information""" |
"""Generate and process aggregated backup information""" |
21 |
|
|
22 |
import re, os, time |
import re, os, time |
23 |
import Globals, Time, increment, log, static |
import Globals, Time, increment, log, static, metadata |
24 |
|
|
25 |
class StatsException(Exception): pass |
class StatsException(Exception): pass |
26 |
|
|
381 |
"""Update file stats with given information""" |
"""Update file stats with given information""" |
382 |
if source_rorp: filename = source_rorp.get_indexpath() |
if source_rorp: filename = source_rorp.get_indexpath() |
383 |
else: filename = dest_rorp.get_indexpath() |
else: filename = dest_rorp.get_indexpath() |
384 |
|
filename = metadata.quote_path(filename) |
385 |
|
|
386 |
size_list = map(cls.get_size, [source_rorp, dest_rorp, inc]) |
size_list = map(cls.get_size, [source_rorp, dest_rorp, inc]) |
387 |
line = " ".join([filename, str(changed)] + size_list) |
line = " ".join([filename, str(changed)] + size_list) |