fix(app): windows path handling issues

This commit is contained in:
Adam
2026-01-22 12:40:57 -06:00
parent f90c6ca56d
commit 49e77575d1
+2 -1
View File
@@ -7,7 +7,8 @@ export function getFilename(path: string | undefined) {
export function getDirectory(path: string | undefined) {
if (!path) return ""
const parts = path.split("/")
const trimmed = path.replace(/[\/\\]+$/, "")
const parts = trimmed.split(/[\/\\]/)
return parts.slice(0, parts.length - 1).join("/") + "/"
}