I want to share a summary of a directory with file names and sizes in plain text.
This thread shows a file list with human-readable file sizes, e.g. on macOS:
$ du -h -d 10 14G ./190803 Aaah 13G ./190804 (no sound)
This post lists a file structure with a nice tree:
$ find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' . |____.DS_Store |____190803 Aaah | |____190803 Aaah.mp4 | |____DSC_0011.MOV | |____DSC_0012.MOV | |____DSC_0013.MOV | |____DSC_0014.MOV | |____DSC_0015.MOV | |____DSC_0016.MOV |____190804 (no sound) | |_____DSC0018.MOV | |_____DSC0019.MOV | |_____DSC0020.MOV | |_____DSC0021.MOV | |_____DSC0022.MOV | |_____DSC0023.MOV | |____DSC_0017.MOV
How can I combine both and show the human-readable file size next to each item, file or folder, in the latter tree display?