1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:49:42 +00:00

print mode in octal

This commit is contained in:
deadc0de6
2020-11-13 15:49:07 +01:00
parent 2bb684d3da
commit 0f79a29ab2

View File

@@ -64,7 +64,7 @@ class Comparator:
right_mode = get_file_perm(right)
if left_mode == right_mode:
return ''
ret = 'modes differ ({} vs {})\n'.format(left_mode, right_mode)
ret = 'modes differ ({:o} vs {:o})\n'.format(left_mode, right_mode)
return ret
def _comp_file(self, left, right, ignore):