mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 13:58:29 +01:00
Use IFileSystem
This commit is contained in:
@@ -887,7 +887,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
return Name;
|
||||
}
|
||||
|
||||
public string GetInternalMetadataPath()
|
||||
public virtual string GetInternalMetadataPath()
|
||||
{
|
||||
var basePath = ConfigurationManager.ApplicationPaths.InternalMetadataPath;
|
||||
|
||||
|
||||
@@ -79,9 +79,5 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
return filePaths;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool PathExists(string path)
|
||||
=> Directory.Exists(path);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,12 +16,5 @@ namespace MediaBrowser.Controller.Providers
|
||||
IReadOnlyList<string> GetFilePaths(string path);
|
||||
|
||||
IReadOnlyList<string> GetFilePaths(string path, bool clearCache, bool sort = false);
|
||||
|
||||
/// <summary>
|
||||
/// Does the path exist.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
/// <returns>Whether the path exists.</returns>
|
||||
bool PathExists(string path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user