Directory count not correct with -d flag
ncw opened this issue · 1 comments
ncw commented
$ tree /tmp/dir
/tmp/dir
├── file1
├── file2
├── file3
└── subdir
├── file4
└── file5
1 directories, 5 files
but with -d gives the wrong footer line
$ tree -d /tmp/dir
/tmp/dir
└── subdir
0 directories
I spent 5 minutes trying to fix this but I couldn't see the problem!