Skip to content

Fix reading presets dir on Windows#1322

Merged
esimkowitz merged 7 commits into
mainfrom
evan/fix-presets-windows
Nov 19, 2024
Merged

Fix reading presets dir on Windows#1322
esimkowitz merged 7 commits into
mainfrom
evan/fix-presets-windows

Conversation

@esimkowitz
Copy link
Copy Markdown
Contributor

@esimkowitz esimkowitz commented Nov 19, 2024

Nested directories in the embedded FS always expect a /, even on Windows. This adds a fallback in readConfigFileFS to try swapping the path separators if we get an "invalid argument" error from Read

@esimkowitz esimkowitz merged commit 0acad2f into main Nov 19, 2024
@esimkowitz esimkowitz deleted the evan/fix-presets-windows branch November 19, 2024 23:21
xxyy2024 pushed a commit to xxyy2024/waveterm_aipy that referenced this pull request Jun 24, 2025
Nested directories in the embedded FS always expect a `/`, even on
Windows. This adds a fallback in `readConfigFileFS` to try swapping the
path separators if we get an "invalid argument" error from `Read`
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.

1 participant