wip: desktop work

This commit is contained in:
Adam
2025-10-13 06:09:02 -05:00
parent 2893b6e3a5
commit bb82d43094
8 changed files with 1179 additions and 276 deletions

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) {