Skip to content

Commit

Permalink
refs #75, avoid messing with long namespaced path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gulrak committed Nov 10, 2020
1 parent b3f9635 commit 809d680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ghc/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 809d680

Please sign in to comment.