aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Localization/LocalizationManager.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-01-29 16:50:01 +0300
committerGitHub <noreply@github.com>2019-01-29 16:50:01 +0300
commit8487319374fa86601a6fcfdae64ee75dc51ed357 (patch)
tree919d0ccc8d36793bcd20dfe58c48563ea724f0e3 /Emby.Server.Implementations/Localization/LocalizationManager.cs
parent0e2e7311036187342fd33d2eb745df4a6bece3f4 (diff)
parent91e99effc9b8dd1e34d4e53e732fe71f1423006c (diff)
Merge pull request #726 from EraYaN/remove-wrappers-for-system-io
Clean up IFileSystem wrappers around stdlib.
Diffstat (limited to 'Emby.Server.Implementations/Localization/LocalizationManager.cs')
-rw-r--r--Emby.Server.Implementations/Localization/LocalizationManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Localization/LocalizationManager.cs b/Emby.Server.Implementations/Localization/LocalizationManager.cs
index c408a47f6..7af8cf18c 100644
--- a/Emby.Server.Implementations/Localization/LocalizationManager.cs
+++ b/Emby.Server.Implementations/Localization/LocalizationManager.cs
@@ -70,7 +70,7 @@ namespace Emby.Server.Implementations.Localization
var localizationPath = LocalizationPath;
- _fileSystem.CreateDirectory(localizationPath);
+ Directory.CreateDirectory(localizationPath);
var existingFiles = GetRatingsFiles(localizationPath)
.Select(Path.GetFileName)
@@ -316,7 +316,7 @@ namespace Emby.Server.Implementations.Localization
/// <returns>Dictionary{System.StringParentalRating}.</returns>
private void LoadRatings(string file)
{
- var dict = _fileSystem.ReadAllLines(file).Select(i =>
+ var dict = File.ReadAllLines(file).Select(i =>
{
if (!string.IsNullOrWhiteSpace(i))
{
@@ -337,7 +337,7 @@ namespace Emby.Server.Implementations.Localization
.Where(i => i != null)
.ToDictionary(i => i.Name, StringComparer.OrdinalIgnoreCase);
- var countryCode = _fileSystem.GetFileNameWithoutExtension(file)
+ var countryCode = Path.GetFileNameWithoutExtension(file)
.Split('-')
.Last();