wip: desktop work
This commit is contained in:
parent
2893b6e3a5
commit
bb82d43094
8 changed files with 1178 additions and 275 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue