mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
Fix handling of long paths on Windows
This commit is contained in:
parent
bf6917bcf3
commit
a413d25446
@ -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");
|
||||
rewrite_options rw_opts;
|
||||
if (recompress) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user