mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
Fix on long filename support.
This commit is contained in:
parent
9c98a0cbaa
commit
48d794e180
@ -2079,7 +2079,7 @@ GHC_INLINE void path::swap(path& rhs) noexcept
|
||||
GHC_INLINE const path::string_type& path::native() const
|
||||
{
|
||||
#ifdef GHC_OS_WINDOWS
|
||||
if(_path.is_absolute() && _path.length() >= MAX_PATH) {
|
||||
if(is_absolute() && _path.length() >= MAX_PATH) {
|
||||
// expand long Windows filenames with marker
|
||||
if(has_root_name() && _path[0] == '/') {
|
||||
_native_cache = "\\\\?\\UNC" + _path.substr(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user