mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 18:48:33 -04:00
fix: Used os path separator rather than '/' where appropriate.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user