Some more FS fixes.

This commit is contained in:
2025-03-10 09:56:26 +01:00
parent c5b9c02342
commit 75e77c53e4
2 changed files with 9 additions and 3 deletions

View File

@@ -71,6 +71,10 @@ std::vector<FileInfo> MappingFileSystemAdapter<TWrapped>::listFiles(const fs::pa
result = wrapped_.listFiles(adjusted);
for (FileInfo& fileInfo : result)
{
if (fileInfo.path.is_absolute())
{
fileInfo.path = fs::relative(fileInfo.path, "/");
}
fileInfo.path = root_ / fileInfo.path;
}
return result;