Opening the current working directory keeps failing on windows for me. Fails when I use "." instead of std::env::current_dir() too.
Anyone happen to know the magic incantation to make this work?
Maybe @Peter Huene?
To open a directory on Windows, you need FILE_FLAG_BACKUP_SEMANTICS set in the flags.
thanks, I was getting confused because when I did "jump to definition" preopen_dir was just doing File::open, but this is because I'm on linux and I didn't realize there were different modules cfg'd on or off depending on target
anyways, thanks again!
Last updated: Dec 06 2025 at 06:05 UTC