aboutsummaryrefslogtreecommitdiff
path: root/src/server/build.odin
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2026-02-12 19:03:32 +1100
committerGitHub <noreply@github.com>2026-02-12 19:03:32 +1100
commit4cc9318992f394a9334add3fb83445561511b340 (patch)
treeac44c1f5c0897c6d3252780e9e6150987b52bd05 /src/server/build.odin
parent69b863acfdb0f8e25caa4fb51f8f3516dc57d5d5 (diff)
parent928a6d23dce5c6b519da7ef007148253ff98d35f (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.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))