aboutsummaryrefslogtreecommitdiff
path: root/src/server/build.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2026-02-12 18:55:26 +1100
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2026-02-12 19:00:53 +1100
commit928a6d23dce5c6b519da7ef007148253ff98d35f (patch)
treeac44c1f5c0897c6d3252780e9e6150987b52bd05 /src/server/build.odin
parente91113bdfe514a7f477b12d1f5fedca5f79cd08f (diff)
Fix using filepath.to_slash on windows
Diffstat (limited to 'src/server/build.odin')
-rw-r--r--src/server/build.odin4
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))