Closed
Description
Currently home
uses SHGetFolderPathW
to get the home directory on Windows:
cargo/crates/home/src/windows.rs
Lines 19 to 26 in bdef274
SHGetFolderPathW
is marked as deprecated and is simply a wrapper around SHGetKnownFolderPath
. It might be better to use the not-deprecated function.
This would allow home
to support user directories longer than MAX_PATH
if, in the future, the OS does. I do however think that's very unlikely so this change isn't that important.