mirror of https://github.com/borgbase/vorta
Fix borg diff
This commit is contained in:
parent
2e1703231e
commit
2e895ac2f3
|
@ -60,24 +60,24 @@ class DiffResult(DiffResultBase, DiffResultUI):
|
||||||
full_path = line[line.find(line_splitted[3]):]
|
full_path = line[line.find(line_splitted[3]):]
|
||||||
elif change_type == "modified":
|
elif change_type == "modified":
|
||||||
full_path = line[line.find(line_splitted[4]):]
|
full_path = line[line.find(line_splitted[4]):]
|
||||||
|
|
||||||
|
dir, name = os.path.split(full_path)
|
||||||
|
# add to nested dict of folders to find nested dirs.
|
||||||
|
d = get_dict_from_list(nested_file_list, dir.split('/'))
|
||||||
|
if name not in d:
|
||||||
|
d[name] = {}
|
||||||
else:
|
else:
|
||||||
size = 0
|
size = 0
|
||||||
full_path = line[line.find(line_splitted[2]):]
|
full_path = line[line.find(line_splitted[2]):]
|
||||||
|
|
||||||
dir, name = os.path.split(full_path)
|
dir, name = os.path.split(full_path)
|
||||||
|
# add to nested dict of folders to find nested dirs.
|
||||||
# add to nested dict of folders to find nested dirs.
|
d = get_dict_from_list(nested_file_list, full_path.split('/'))
|
||||||
d = get_dict_from_list(nested_file_list, dir.split('/'))
|
|
||||||
if name not in d:
|
|
||||||
d[name] = {}
|
|
||||||
|
|
||||||
return size, change_type, name, dir
|
return size, change_type, name, dir
|
||||||
|
|
||||||
for l in fs_data.split('\n'):
|
for l in fs_data.split('\n'):
|
||||||
try:
|
files_with_attributes.append(parse_line(l))
|
||||||
files_with_attributes.append(parse_line(l))
|
|
||||||
except ValueError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
model = TreeModel()
|
model = TreeModel()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue