restic ls --json: print "size":0 for empty files

This commit is contained in:
greatroar
2021-02-01 15:56:36 +01:00
parent af3de702c7
commit d7322a5f36
3 changed files with 137 additions and 26 deletions

View File

@@ -0,0 +1,8 @@
Change: Empty files now have size of 0 in restic ls --json output
Restic ls --json used to omit the sizes of empty files in its output. It now
reports "size":0 explicitly for regular files, while omitting the size field
for all other types.
https://github.com/restic/restic/issues/3247
https://github.com/restic/restic/pull/3257