diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-12 19:03:32 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-12 19:03:32 +1100 |
| commit | 4cc9318992f394a9334add3fb83445561511b340 (patch) | |
| tree | ac44c1f5c0897c6d3252780e9e6150987b52bd05 /src/server/build.odin | |
| parent | 69b863acfdb0f8e25caa4fb51f8f3516dc57d5d5 (diff) | |
| parent | 928a6d23dce5c6b519da7ef007148253ff98d35f (diff) | |
Merge pull request #1298 from BradLewis/fix/os-filepath-changes-windows
Fix filepath and os updates on windows
Diffstat (limited to 'src/server/build.odin')
| -rw-r--r-- | src/server/build.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/build.odin b/src/server/build.odin index d2a1b97..6df21a8 100644 --- a/src/server/build.odin +++ b/src/server/build.odin @@ -263,7 +263,7 @@ remove_index_file :: proc(uri: common.Uri) -> common.Error { fullpath := uri.path when ODIN_OS == .Windows { - fullpath, _ = filepath.to_slash(fullpath, context.temp_allocator) + fullpath, _ = filepath.replace_path_separators(fullpath, '/', context.temp_allocator) } corrected_uri := common.create_uri(fullpath, context.temp_allocator) @@ -302,7 +302,7 @@ index_file :: proc(uri: common.Uri, text: string) -> common.Error { when ODIN_OS == .Windows { correct := common.get_case_sensitive_path(fullpath, context.temp_allocator) - fullpath, _ = filepath.to_slash(correct, context.temp_allocator) + fullpath, _ = filepath.replace_path_separators(correct, '/', context.temp_allocator) } dir := filepath.base(filepath.dir(fullpath, context.temp_allocator)) |