mirror of
https://github.com/immich-app/immich.git
synced 2025-06-04 01:57:32 +02:00
6 lines
158 B
TypeScript
6 lines
158 B
TypeScript
|
import { basename, extname } from 'node:path';
|
||
|
|
||
|
export function getFileNameWithoutExtension(path: string): string {
|
||
|
return basename(path, extname(path));
|
||
|
}
|