mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
refs #75, avoid messing with long namespaced path on windows
This commit is contained in:
parent
b3f9635581
commit
809d680df9
@ -2549,8 +2549,8 @@ GHC_INLINE path::impl_string_type path::native_impl() const
|
||||
{
|
||||
impl_string_type result;
|
||||
if (is_absolute() && _path.length() > MAX_PATH - 10) {
|
||||
// expand long Windows filenames with marker
|
||||
if (has_root_name() && _path[0] == '/') {
|
||||
// expand absolute non namespaced long Windows filenames with marker
|
||||
if (has_root_name() && _path[0] == '/' && _path[1] != '/') {
|
||||
result = "\\\\?\\" + _path.substr(1);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user