Simple tauri app

This commit is contained in:
2025-08-21 13:46:37 +02:00
parent fad58390f4
commit 671c4b5a6a
2541 changed files with 984065 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
/**
* Removes everything after the last "/", but leaves the slash.
*/
export default function stripFilename(path: string | undefined | null): string {
if (!path) return '';
const index = path.lastIndexOf('/');
return path.slice(0, index + 1);
}