Byron / dua-cli

View disk space usage and delete unwanted data, fast.
https://lib.rs/crates/dua-cli
MIT License
4.19k stars 113 forks source link

Fix treatment of symlinks in interactive mode #27

Closed vks closed 5 years ago

vks commented 5 years ago

Make sure to use symlink_metadata instead of metadata. This makes sure that symlinks are not followed when recursively deleting directories or when calculating file sizes.

The non-interactive mode is unaffected, because jwalk does not provide options to deal with symlinks.

ghost commented 5 years ago

Thanks so much! This is a big one, despite the small changes. It puzzles me how I could not find this in the documentation, it's quite obvious actually.

I will cut a new release right away!