-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Is baked_file_system supposed to work under Windows ? #47
Comments
Win32 isn't explicitly tested but I suppose it should work. |
If you want to try it, I put the code on GitHub: |
I think I figured out the main issue why it's failing on Windows.
On Windows the path seperator of course ends up being Not sure if this is the best way, but I was able to fix this by using - files = Dir.glob(File.join(root_path, "**", "*"))
+ files = Dir.glob(Path[root_path, "**", "*"].to_posix) Some of the tests will still fail even with this, mostly due to more path issues, but a couple due to git handily converting files to CRLF 😅 But nothing big preventing this from working! |
When trying the following code on Windows 11 (code which works under macOS)
I got the error message:
The text was updated successfully, but these errors were encountered: