feature: Support for dereference links -L follow

du has -L flag which allows it to dereference or follow
symlinks. Clone this feature into dust.
https://github.com/bootandy/dust/issues/276
This commit is contained in:
andy.boot
2023-01-07 14:04:14 +00:00
parent a3ab5bfe0f
commit abcc46c5ea
8 changed files with 19 additions and 3 deletions
+2
View File
@@ -154,6 +154,7 @@ fn main() {
let by_filecount = options.is_present("by_filecount");
let limit_filesystem = options.is_present("limit_filesystem");
let follow_links = options.is_present("dereference_links");
let simplified_dirs = simplify_dir_names(target_dirs);
let allowed_filesystems = limit_filesystem
@@ -172,6 +173,7 @@ fn main() {
use_apparent_size: config.get_apparent_size(&options),
by_filecount,
ignore_hidden: config.get_ignore_hidden(&options),
follow_links,
};
let _rayon = init_rayon();