Fix handling of long paths on Windows

This commit is contained in:
Marcus Holland-Moritz 2023-07-04 12:37:08 +02:00
parent bf6917bcf3
commit a413d25446

View File

@ -716,6 +716,12 @@ int mkdwarfs_main(int argc, sys_char** argv) {
} }
} }
path = std::filesystem::canonical(path);
#ifdef _WIN32
path = std::filesystem::path(L"\\\\?\\" + path.wstring());
#endif
bool recompress = vm.count("recompress"); bool recompress = vm.count("recompress");
rewrite_options rw_opts; rewrite_options rw_opts;
if (recompress) { if (recompress) {