Filesystem abstraction prototype - Path fixes
This commit is contained in:
parent
124b95db69
commit
2d3f98aba1
1 changed files with 2 additions and 2 deletions
|
@ -312,7 +312,7 @@ T_FSPath T_FSPath::makeRelative(
|
|||
|
||||
T_FSPath np;
|
||||
const T_String parent{ T_String::Pooled( ".." ) };
|
||||
for ( auto i = nca ; i > nCommon ; i -- ) {
|
||||
for ( auto i = ncb ; i > nCommon ; i -- ) {
|
||||
np.components_.add( parent );
|
||||
}
|
||||
for ( auto i = nCommon ; i < nca ; i ++ ) {
|
||||
|
@ -335,7 +335,7 @@ bool T_FSPath::isCanonical( ) const noexcept
|
|||
return false;
|
||||
}
|
||||
}
|
||||
return nc > 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
T_FSPath T_FSPath::canonical( ) const noexcept
|
||||
|
|
Loading…
Reference in a new issue