From 8e4ec4ee3e482f453212f6250421699ed7d75382 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Mon, 30 Dec 2024 07:46:36 -0600 Subject: [PATCH] fix bug on subdirfs if path is absolute --- src/Filesystem/SubdirFilesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filesystem/SubdirFilesystem.cpp b/src/Filesystem/SubdirFilesystem.cpp index 46daac0..3334bd3 100644 --- a/src/Filesystem/SubdirFilesystem.cpp +++ b/src/Filesystem/SubdirFilesystem.cpp @@ -32,7 +32,7 @@ namespace Tesses::Framework::Filesystem SubdirFilesystem::SubdirFilesystem(VFS* parent, VFSPath path, bool owns) { this->parent = parent; - if(dynamic_cast(parent) != nullptr) + if(path.relative && dynamic_cast(parent) != nullptr) { Tesses::Framework::Filesystem::LocalFilesystem lfs; auto curDir = std::filesystem::current_path();