fix bug on subdirfs if path is absolute

This commit is contained in:
Mike Nolan 2024-12-30 07:46:36 -06:00
parent 7541651a06
commit 8e4ec4ee3e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace Tesses::Framework::Filesystem
SubdirFilesystem::SubdirFilesystem(VFS* parent, VFSPath path, bool owns)
{
this->parent = parent;
if(dynamic_cast<LocalFilesystem*>(parent) != nullptr)
if(path.relative && dynamic_cast<LocalFilesystem*>(parent) != nullptr)
{
Tesses::Framework::Filesystem::LocalFilesystem lfs;
auto curDir = std::filesystem::current_path();