Use IFileSystem

This commit is contained in:
Cody Robibero
2022-02-28 16:16:25 -07:00
parent 1d367712bb
commit fc5c6c0404
12 changed files with 111 additions and 50 deletions

View File

@@ -887,7 +887,7 @@ namespace MediaBrowser.Controller.Entities
return Name;
}
public string GetInternalMetadataPath()
public virtual string GetInternalMetadataPath()
{
var basePath = ConfigurationManager.ApplicationPaths.InternalMetadataPath;

View File

@@ -79,9 +79,5 @@ namespace MediaBrowser.Controller.Providers
return filePaths;
}
/// <inheritdoc />
public bool PathExists(string path)
=> Directory.Exists(path);
}
}

View File

@@ -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);
}
}