-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with Win32 namespaced paths #32
Comments
So that would mean that IFileDialog::SetFolder does not support namespaced paths. To be honest, I did not know about existence of namespaced paths before, so I'm not sure how to proceed with this. Can we just strip those? |
I am stripping the prefix to make it work in my app. I can submit a PR. I also noticed
|
Paths with a Win32 namespace look like this:
\\?\C:\windows
. See https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#win32-file-namespaces for details. Paths of this form are returned byPath::canonicalize()
andfs::canonicalize()
.When these namespaced paths are used with
FileDialog::set_directory()
, the dialog opens in the current working directory or the user's documents instead of the requested directory (at least in 0.6.0. The dialog fails to open at all in 0.5.1!)For instance, this patch:
Should open the dialog in the
C:\windows
directory when running thesimple
example on Windows. Remove the\\?\
namespace prefix and it works as expected.The text was updated successfully, but these errors were encountered: