wip: desktop work

This commit is contained in:
Adam
2025-10-14 07:15:08 -05:00
parent 2893b6e3a5
commit bb82d43094
8 changed files with 1179 additions and 276 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
export function getFilename(path: string) {
const parts = path.split("/")
return parts[parts.length - 1]
if (!path) return ""
const trimmed = path.replace(/[\/]+$/, "")
const parts = trimmed.split("/")
return parts[parts.length - 1] ?? ""
}
export function getDirectory(path: string) {