One small surprise I found came when I have a symlink to a directory and refer to that with a trailing "/". dut doesn't follow the link in order to scan the real directory. Ie I have this symlink:
ln -s /big/disk/dev ~/dev
then
./dut ~/dev/
returns zero size while
du -sh ~/dev/
returns the full size.
I'm not sure how widespread this convention is to resolve symlinks to their target directories if named with a trailing "/" but it's one my fingers have memorized.
In any case, this is another tool for my toolbox. Thank you for sharing it.
One small surprise I found came when I have a symlink to a directory and refer to that with a trailing "/". dut doesn't follow the link in order to scan the real directory. Ie I have this symlink:
then returns zero size while returns the full size.I'm not sure how widespread this convention is to resolve symlinks to their target directories if named with a trailing "/" but it's one my fingers have memorized.
In any case, this is another tool for my toolbox. Thank you for sharing it.