diff options
author | Fabian Wickborn <fabian@wickborn.net> | 2019-09-18 19:48:12 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2019-09-20 22:11:24 +0200 |
commit | f048cf8978f21279a0db97fccffd9bca467e07fe (patch) | |
tree | 4b41c85c434cf8d92e9d28f0c67923f62e63b96b /src/walk/windows.rs | |
parent | e8b8216801abc924f5d6cbceaf48c0faa55e959a (diff) |
Enable Windows builds
Fixes #32.
Diffstat (limited to 'src/walk/windows.rs')
-rw-r--r-- | src/walk/windows.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/walk/windows.rs b/src/walk/windows.rs new file mode 100644 index 0000000..8a3bcca --- /dev/null +++ b/src/walk/windows.rs @@ -0,0 +1,13 @@ +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. + // + // Footnotes: + // [1] https://github.com/sharkdp/diskus/issues/32#issuecomment-532817905 + None +} |