diff options
| author | Brian Arnold <connect@brian-arnold.dev> | 2021-04-08 05:19:28 -0400 |
|---|---|---|
| committer | Brian Arnold <connect@brian-arnold.dev> | 2021-04-08 05:19:28 -0400 |
| commit | a2acfb02e994f9829c5a0131f583e720b3466ce8 (patch) | |
| tree | 0d051a01928cc2467de1451cda6cc24364104870 | |
| parent | 2314487e38d77f5d3a123ad2f0e76ab6ea2134c7 (diff) | |
Can't reference System.IO.Path as 'Path', even though System.IO is in the usings, because there is a Path property of the class.
| -rw-r--r-- | MediaBrowser.Controller/Playlists/Playlist.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Playlists/Playlist.cs b/MediaBrowser.Controller/Playlists/Playlist.cs index 089d241ba..977b14cb0 100644 --- a/MediaBrowser.Controller/Playlists/Playlist.cs +++ b/MediaBrowser.Controller/Playlists/Playlist.cs @@ -45,7 +45,7 @@ namespace MediaBrowser.Controller.Playlists public static bool IsPlaylistFile(string path) { // The path will sometimes be a directory and "Path.HasExtension" returns true if the name contains a '.' (dot). - return Path.HasExtension(path) && !Directory.Exists(path); + return System.IO.Path.HasExtension(path) && !Directory.Exists(path); } [JsonIgnore] |
