diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-28 17:26:19 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-28 17:26:19 +0000 |
| commit | f2b0f63b811584b2a79a47943bc1299172723d85 (patch) | |
| tree | abd371321670c64a9872b76db22f40e3cbe285cd /core/path/filepath/path.odin | |
| parent | 37c2f6882419c8811d9fc9238873668b82a40a04 (diff) | |
Use clean paths to calculate volumes
Diffstat (limited to 'core/path/filepath/path.odin')
| -rw-r--r-- | core/path/filepath/path.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/path/filepath/path.odin b/core/path/filepath/path.odin index d5ba76342..dbad98fa1 100644 --- a/core/path/filepath/path.odin +++ b/core/path/filepath/path.odin @@ -399,8 +399,8 @@ rel :: proc(base_path, target_path: string, allocator := context.allocator) -> ( return strings.clone(".", allocator), .None } - base_vol := volume_name(base_path) - target_vol := volume_name(target_path) + base_vol := volume_name(base_clean) + target_vol := volume_name(target_clean) base := base_clean [len(base_vol):] target := target_clean[len(target_vol):] if base == "." { |