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

Common/FileUtil: Strip trailing path separator in ScanDirectoryTree(). #10098

Merged

Conversation

AdmiralCurtiss
Copy link
Contributor

Noticed this during debugging. This causes an inconsistency between the path returned in the 'root' directory node and the path returned in all child directory nodes.

Before:
before

Note how the rootEntry.physicalName ends in a trailing slash but all child directories do not, and how all child names have a // after files.

After:
after

I hope no one is relying on this behavoir somewhere...

@AdmiralCurtiss
Copy link
Contributor Author

Someone should check the behavior on Linux and Android too, I only tested Windows.

@leoetlino leoetlino merged commit b43cee8 into dolphin-emu:master Sep 20, 2021
11 checks passed
@AdmiralCurtiss AdmiralCurtiss deleted the scan-dir-tree-trailing-slash branch September 20, 2021 14:36
@pssandhu
Copy link

pssandhu commented Oct 3, 2021

This has fixed an issue I was having on Linux with the dynamic input textures feature not detecting a gameid.txt within the input textures folder. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants