Skip to content

Fix WIM filesystem#3

Merged
Olof-Lagerkvist merged 4 commits into
LTRData:LTRData.DiscUtils-initialfrom
Erik-White:fix-wim-filesystem
Jan 24, 2024
Merged

Fix WIM filesystem#3
Olof-Lagerkvist merged 4 commits into
LTRData:LTRData.DiscUtils-initialfrom
Erik-White:fix-wim-filesystem

Conversation

@Erik-White

Copy link
Copy Markdown

There is currently a bug that affects the WIM file system where no entries are returned for root directories.
This is a result of the change introduced by the switch to the LTRData.SplitExtensions split function, see: f09f015#diff-ab45e438d7f2403bff5c28a276f345a016c816c8ef1893d3fb7c29858901891cR716
This function doesn't return anything when there are no results for Split, in contrast to the .NET Split which always returns the original search string (with the default split options).

The result of this change is that everything in GetEntry is skipped over since path.Length == 0 if there were no matches.

I have opened a PR to fix this in your other repo: LTRData/Library#1
This PR takes the updated version of LTRData.SplitExtensions and adds a simple regression test for WIM filesystems.

@Olof-Lagerkvist Olof-Lagerkvist merged commit ba5b825 into LTRData:LTRData.DiscUtils-initial Jan 24, 2024
@Erik-White

Copy link
Copy Markdown
Author

Thanks for merging. Could you please push the new package version to nuget?

@Olof-Lagerkvist

Copy link
Copy Markdown
Member

Thanks for merging. Could you please push the new package version to nuget?

Yes, they should be available there in a few minutes!

Thanks again!

@Erik-White

Copy link
Copy Markdown
Author

Thank you, and thanks for your great work with DiscUtils ⭐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants