wip: desktop work

This commit is contained in:
Adam 2025-10-13 06:09:02 -05:00
commit bb82d43094
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
8 changed files with 1178 additions and 275 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) {