summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2019-09-20 21:57:41 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2019-09-20 22:11:24 +0200
commit8e423caaea78fb409176607b2f67753a972b3391 (patch)
tree7614890198792d507b4362ea17786e3c1e32386e
parentf188fd5a713022723121669496d7c66eef10c531 (diff)
Shorten explanation
-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
}