mirror of
https://github.com/tobi/disktree.git
synced 2026-11-29 08:00:52 +00:00
- The home directory comes from std::env::home_dir, which reads USERPROFILE on Windows and HOME elsewhere. - The root is canonicalized through dunce, so Windows paths read C:\Users\... rather than \?\C:\..., the form nothing else is written in and which would never match the home directory. - A windowed program on Windows: no console window from Explorer or the Start menu. It attaches to the console of a terminal it was started from, as Alacritty does, so --help and errors still show there. - Paths after ~ and the trail between crumbs use the platform's separator: ~\AppData\Local, C:\ Users \ tobi.