The initialDirectory
parameter of getDirectoryPath
does not support POSIX-style paths
#1508
Closed
1 of 4 tasks
Describe the bug
When using the
getDirectoryPath
API, if theinitialDirectory
parameter is set to a POSIX-style path (/path/to/file), the app will crash. When a Windows-style path is set (\path\to\file), the app will run normally.However, both
pickFiles
andsaveFile
APIs support the use of POSIX-style paths, onlygetDirectoryPath
does not allow it.On Windows platforms, should file_picker internally convert
initialDirectory
to Windows-style?Platform
Platform OS version
Windows 11 23H2
How are you picking?
Flutter Version details
v3.19.6, all ok.
The text was updated successfully, but these errors were encountered: