Fix ConvertFilenameToTasMovie test

This commit is contained in:
Morilli 2024-05-31 19:08:40 +02:00
parent 6bc771bf57
commit 657531a328
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ namespace BizHawk.Common.PathExtensions
public static (string? Dir, string FileNoExt, string? FileExt) SplitPathToDirFileAndExt(this string path)
=> (
Path.GetDirectoryName(path),
string.IsNullOrEmpty(path) ? null : Path.GetDirectoryName(path),
Path.GetFileNameWithoutExtension(path),
Path.GetExtension(path) is { Length: not 0 } ext
? ext