Use absolute_path instead of fs::canonicalize#4131
Use absolute_path instead of fs::canonicalize#4131topecongiro merged 3 commits intorust-lang:masterfrom
Conversation
|
I am still not sure this will work in all cases, but I will merge this for now. |
|
@topecongiro , this will likely fail for deep paths even on later version Windows 10 installations. The removal of the MAX_PATH (~260 characters) limitation is opt-in and has to have a registry value set (see https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#enable-long-paths-in-windows-10-version-1607-and-later). That's an impossible bar to expect from any significant user population. It can't really be counted on at all. However, there is an available solution... extended-paths. Extended-paths (marked by a leading I referenced the needed solution for this in the original issue/PR. This type of path construction can even be used to access windows wierdo reserved paths like Please see the |
|
@rivy Hmm, I will take a look again, but the |
This PR is a successor of #3590.