Skip to content

Commit

Permalink
Fixed incorrect fullPath in PboSub (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen authored Oct 22, 2023
1 parent a382d83 commit 139b938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PboFileDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,10 @@ void PboFile::ReadFrom(std::filesystem::path inputPath)
curFolder = *subfolderFound;
continue;
}

auto newSub = std::make_shared<PboSubFolder>();
newSub->filename = it;
newSub->fullPath = filePath.parent_path();
newSub->fullPath = curFolder->fullPath / it;
newSub->rootFile = weak_from_this();
curFolder->subfolders.emplace_back(std::move(newSub));
curFolder = curFolder->subfolders.back();
Expand Down

0 comments on commit 139b938

Please sign in to comment.