du on Windows
I'd be interested in having du compile on Windows. Looking at the code and compiler error msgs the only blocker is the use of std::os::unix::fs::MetadataExt. Seems like that could be fixed with a handful of #[cfg]'s. That would of course affect parts of the code that use MetadataExt and ultimately would lead to the following options not being included on Windows:
- apparent-size
- time
- time-style
- count-links
I'd personally still get use out of a du without these options. I'm down to work on this if ppl are open to these sorta changes.
These sorts of changes are always welcome! Of course, if you manage to figure out how to get the equivalent info on Windows that would be preferable to disabling features, but ideally all the utils should be able to run in some form on any OS.
My filesize crate may be of interest - it's already used by several Rust du-alikes and abstracts across Windows and Unix.
Recommend marking as a duplicate of #1622 (which I implemented).
Closing this ticket, fixed in https://github.com/uutils/coreutils/pull/1788