mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #5725 from BrianCArnold/Fix2845_PlaylistDeletion
(cherry picked from commit 9d0467addfb5c0704acf8af89736f189686f5c0c) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
3c64bcffe3
commit
93cca4d50e
@ -3,6 +3,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading;
|
||||
@ -43,7 +44,8 @@ namespace MediaBrowser.Controller.Playlists
|
||||
|
||||
public static bool IsPlaylistFile(string path)
|
||||
{
|
||||
return System.IO.Path.HasExtension(path);
|
||||
// The path will sometimes be a directory and "Path.HasExtension" returns true if the name contains a '.' (dot).
|
||||
return System.IO.Path.HasExtension(path) && !Directory.Exists(path);
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
|
Loading…
x
Reference in New Issue
Block a user