mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 11:13:32 +01:00
update file system methods
This commit is contained in:
@@ -58,7 +58,7 @@ namespace MediaBrowser.Server.Implementations.Localization
|
||||
|
||||
var localizationPath = LocalizationPath;
|
||||
|
||||
Directory.CreateDirectory(localizationPath);
|
||||
_fileSystem.CreateDirectory(localizationPath);
|
||||
|
||||
var existingFiles = Directory.EnumerateFiles(localizationPath, "ratings-*.txt", SearchOption.TopDirectoryOnly)
|
||||
.Select(Path.GetFileName)
|
||||
@@ -212,7 +212,7 @@ namespace MediaBrowser.Server.Implementations.Localization
|
||||
/// <returns>Dictionary{System.StringParentalRating}.</returns>
|
||||
private void LoadRatings(string file)
|
||||
{
|
||||
var dict = File.ReadAllLines(file).Select(i =>
|
||||
var dict = _fileSystem.ReadAllLines(file).Select(i =>
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(i))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user