Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WIM filesystem #3

Merged

Conversation

Erik-White
Copy link

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.

@LTRData LTRData merged commit ba5b825 into LTRData:LTRData.DiscUtils-initial Jan 24, 2024
1 check passed
@Erik-White
Copy link
Author

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

@LTRData
Copy link
Owner

LTRData commented Jan 24, 2024

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
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