Fix subdir fs
This commit is contained in:
parent
679094d787
commit
858f1b25f7
|
@ -10,7 +10,7 @@ namespace Tesses::Framework::Filesystem
|
||||||
{
|
{
|
||||||
// /a/b/c
|
// /a/b/c
|
||||||
// /a/b/c
|
// /a/b/c
|
||||||
VFSPath newPath;
|
VFSPath newPath
|
||||||
newPath.relative=false;
|
newPath.relative=false;
|
||||||
|
|
||||||
if(path.path.size() >= this->path.path.size())
|
if(path.path.size() >= this->path.path.size())
|
||||||
|
@ -90,7 +90,7 @@ namespace Tesses::Framework::Filesystem
|
||||||
return VFSPathEnumerator([enumerator,path,this](VFSPath& path0)->bool{
|
return VFSPathEnumerator([enumerator,path,this](VFSPath& path0)->bool{
|
||||||
if(enumerator->MoveNext())
|
if(enumerator->MoveNext())
|
||||||
{
|
{
|
||||||
path0 = FromParent( path / enumerator->Current);
|
path0 = FromParent(enumerator->Current);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -145,4 +145,4 @@ namespace Tesses::Framework::Filesystem
|
||||||
if(this->owns)
|
if(this->owns)
|
||||||
delete this->parent;
|
delete this->parent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue