summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md15
-rw-r--r--src/walk/windows.rs14
2 files changed, 9 insertions, 20 deletions
diff --git a/README.md b/README.md
index f0f2aef..6e496aa 100644
--- a/README.md
+++ b/README.md
@@ -119,17 +119,10 @@ cargo install diskus
## Windows caveats
- Since even the Windows-internal tools such as (but not limited to)
- - Powershell,
- - Explorer,
- - dir,
-
- are not respecting hardlinks or junction points when determining the
- size of a directory, it has been decided that diskus will count
- any such entries multiple times. too. See
- https://github.com/sharkdp/diskus/issues/32#issuecomment-532817905 for
- an example of this behaviour.
-
+Windows-internal tools such as Powershell, Explorer or `dir` are not respecting hardlinks or
+junction points when determining the size of a directory. `diskus` does the same and counts
+such entries multiple times (on Unix systems, multiple hardlinks to a single file are counted
+just once).
## License
diff --git a/src/walk/windows.rs b/src/walk/windows.rs
index 8a3bcca..43cdff2 100644
--- a/src/walk/windows.rs
+++ b/src/walk/windows.rs
@@ -1,13 +1,9 @@
pub fn generate_unique_id(_metadata: &std::fs::Metadata) -> Option<super::UniqueID> {
- // Since even the Windows-internal tools such as (but not limited to)
- // - Powershell,
- // - Explorer,
- // - dir,
- // are not respecting hardlinks or junction points when determining the
- // size of a directory [1], it has been decided that diskus will count
- // any such entries multiple times. too.
+ // Windows-internal tools such as Powershell, Explorer or `dir` are not respecting hardlinks
+ // or junction points when determining the size of a directory. `diskus` does the same and
+ // counts such entries multiple times (on Unix systems, multiple hardlinks to a single file are
+ // counted just once).
//
- // Footnotes:
- // [1] https://github.com/sharkdp/diskus/issues/32#issuecomment-532817905
+ // See: https://github.com/sharkdp/diskus/issues/32
None
}