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-04 21:16:01 +00:00
parent 0ac818a2f5
commit 57115bd624
9 changed files with 25 additions and 8 deletions
+1 -3
View File
@@ -21,9 +21,7 @@ pub fn get_metadata(d: &Path, use_apparent_size: bool) -> Option<(u64, Option<(u
Some((md.blocks() * get_block_size(), Some((md.ino(), md.dev()))))
}
}
Err(_e) => {
None
}
Err(_e) => None,
}
}