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(ext4): replaced filepath.Separator with "/" #3

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

SoftPoison
Copy link
Contributor

This fixes an inconsistency when the library is used on Windows.

On Linux, the file path separator is "/", but on Windows it is "". As "/" is already hardcoded elsewhere, and "/" is a forbidden character in file names and folders on Windows already, all instances have been replaced with "/".

Closes #2

This fixes an inconsistency when the library is used on Windows.

On Linux, the file path separator is "/", but on Windows it is "\". As
"/" is already hardcoded elsewhere, and "/" is a forbidden character in
file names and folders on Windows already, all instances have been
replaced with "/".

Closes masahiro331#2
@masahiro331
Copy link
Owner

Oh!!!!
I appreciate the PR.

I'll review it.

@masahiro331 masahiro331 merged commit c8ff310 into masahiro331:main Feb 23, 2023
@masahiro331
Copy link
Owner

@SoftPoison
Thank you !!!

@SoftPoison SoftPoison deleted the 2_windows_incompatibility branch February 23, 2023 18:33
@SoftPoison
Copy link
Contributor Author

Thanks for merging! :)

@masahiro331
Copy link
Owner

masahiro331 commented Feb 24, 2023

If you don't mind, here too. 👨
https://github.com/masahiro331/go-xfs-filesystem

@SoftPoison
Copy link
Contributor Author

Sure thing! :)

masahiro331/go-xfs-filesystem#2

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.

Fails to open contained files when running on Windows
2 participants