fix: Used os path separator rather than '/' where appropriate.

This commit is contained in:
2026-06-24 17:48:57 -04:00
parent f825bc2b09
commit 5cc7973775
5 changed files with 49 additions and 70 deletions

View File

@@ -57,12 +57,16 @@ cmd_list :: proc(cmd: ^Command) {
append(
&entries,
ListEntry {
dir = strings.concatenate({row.dir, "/"}, context.temp_allocator),
dir = strings.concatenate(
{row.dir, os.Path_Separator_String},
context.temp_allocator,
),
path = filename,
},
)
}
data, marshal_err := json.marshal(entries[:], allocator = context.temp_allocator)
if marshal_err != nil {
fmt.wprintf(cmd.err, "Error marshaling JSON: %v\n", marshal_err, flush = false)