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

Stop using explicit \ as directory separator #2

Merged
merged 3 commits into from
Mar 2, 2019

Conversation

franc6
Copy link
Contributor

@franc6 franc6 commented Feb 27, 2019

This one includes a single change that's more Linux-specific*. Look at FixDirectorySeparator() in CDBurner/PathEx.cs. It checks which style of directory separator is in use, and changes the opposite one to it. This is really needed on Linux, as someone might be importing configuration from a Windows box (actually, going the other way, this will make it look nicer, although on Windows / will be seen as a directory separator, so it works without). I can easily redo this pull request to remove that coding change if you like, since it's really only needed on Linux.

  • Well, any non-Windows system that can run Mono, really.

Tom Francis added 3 commits February 7, 2019 15:12
Modified code to use Path.DirectorySeparator instead of explicit \.
Also added new PathEx.FixDirectorySeparator() to make it easier to
ensure the correct directory separator is in use.

Updated TargetPath property to call PathEx.FixDirectorySeparator
whenever it is set.  This ensures the directory separator is always
correct.
Another commit corrected this for a different issue, but we don't want
to perpetuate the incorrect stuff into the main Ketarin project.
@floele floele merged commit ac918aa into canneverbe:master Mar 2, 2019
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.

None yet

2 participants