Mikael Berthe <mikael@lilotux.net> [Wed, 23 Feb 2022 22:56:53 +0100] rev 45
Display existing hard links in result sets
This is a breaking change in the plain text output,
but somehow the list displayed in case of existing hard links
was arbitrary, since the all the hardlinked filenames were not displayed.
Here's a sample JSON result with this patch:
{
"file_size": 9216,
"paths": [
"test_tree/f09-1_5.raw",
"test_tree/f09-4_5.raw"
],
"links": {
"test_tree/f09-1_5.raw": [
"test_tree/f09-2_5.raw",
"test_tree/f09-3_5.raw"
],
"test_tree/f09-4_5.raw": [
"test_tree/f09-5_5.raw"
]
}
}
Here the 5 files have the same contents, but there are two hardlink groups:
"test_tree/f09-1_5.raw"
"test_tree/f09-2_5.raw"
"test_tree/f09-3_5.raw"
are hard-linked, and
"test_tree/f09-4_5.raw"
"test_tree/f09-5_5.raw"
are hard-linked.
Here's the same set displayed With the regular text output:
Group #5 (2 files * 9216 bytes):
test_tree/f09-1_5.raw
test_tree/f09-2_5.raw
test_tree/f09-3_5.raw
test_tree/f09-4_5.raw
test_tree/f09-5_5.raw
(The link file names are indented using 1 space character.)
Mikael Berthe <mikael@lilotux.net> [Sat, 01 Dec 2018 22:46:09 +0100] rev 44
Improve previous commit (JSON output)
Mikael Berthe <mikael@lilotux.net> [Thu, 29 Nov 2018 21:51:26 +0100] rev 43
Do not display Dupes title when using JSON output
Mikael Berthe <mikael@lilotux.net> [Sun, 14 Oct 2018 17:27:37 +0200] rev 42
Rename JSON size fields
Make the field names more explicit...
Mikael Berthe <mikael@lilotux.net> [Sun, 14 Oct 2018 15:45:30 +0200] rev 41
JSON: Add fields 'total_size' and 'total_size_h'
Mikael Berthe <mikael@lilotux.net> [Sun, 14 Oct 2018 15:44:28 +0200] rev 40
JSON output: NumberOfSets was not set
Mikael Berthe <mikael@lilotux.net> [Sun, 14 Oct 2018 15:33:53 +0200] rev 39
Move formatSize() to output.go
Mikael Berthe <mikael@lilotux.net> [Sun, 14 Oct 2018 15:23:11 +0200] rev 38
Cosmetic changes
Mikael Berthe <mikael@lilotux.net> [Sun, 14 Oct 2018 15:21:46 +0200] rev 37
Some code refactoring
Move logic out of main().
Mikael Berthe <mikael@lilotux.net> [Sun, 14 Oct 2018 13:20:09 +0200] rev 36
Add JSON output