I am looking for a program that can list all files in a folder/drive as well as all sub-folders, recursively, hierarchically, and with folder/file size in Windows. The output should be saved in a text files.
Here is an example of output I would like to have:
C:\folder>list.bat . ├── [1.9M] aclArc-20080325.tgz ├── [ 64K] aclArc-20080325.tgz.1 ├── [ 15G] backup │ └── [ 15G] pubmed.zip ├── [ 293] connection_ssh2.sh ├── [ 242] connection_ssh.sh ├── [244G] corpora │ ├── [ 15G] cv_corpus_v1 │ │ ├── [ 12G] cv_corpus_v1.tar.gz [...]
tree accessible natively in cmd.exe, but it doesn't have any option to display file sizes:
C:\folder>tree /? Graphically displays the folder structure of a drive or path. TREE [drive:][path] [/F] [/A] /F Display the names of the files in each folder. /A Use ASCII instead of extended characters.
2) On Ubuntu, one can use
tree --du, for tree 1.6 and above:
--du For each directory report its size as the accumulation of sizes of all its files and sub-directories (and their files, and so on). The total amount of used space is also given in the final report (like the 'du -c' command.) This option requires tree to read the entire directory tree before emitting it, see BUGS AND NOTES below. Implies -s.
so I tried tree.exe provided in Cygwin and gnuwin32, but both of them come with tree version 1.5.
C:\Program Files (x86)\Git\bin don't contain