Explorar o código

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.

Brian Arnold %!s(int64=4) %!d(string=hai) anos
pai
achega
a2acfb02e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MediaBrowser.Controller/Playlists/Playlist.cs

+ 1 - 1
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]