Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Breaking Changes: Docker Parity (#715)

Joseph Milazzo44f15f25c6fa
diff --git a/API/Services/DirectoryService.cs b/API/Services/DirectoryService.cs
index 1148c60bb..f770a3065 100644
--- a/API/Services/DirectoryService.cs
+++ b/API/Services/DirectoryService.cs
@@ -97,7 +97,7 @@ namespace API.Services
return di.Exists;
}
- public IEnumerable<string> GetFiles(string path, string searchPatternExpression = "",
+ public static IEnumerable<string> GetFiles(string path, string searchPatternExpression = "",
SearchOption searchOption = SearchOption.TopDirectoryOnly)
{
if (searchPatternExpression != string.Empty)
@@ -136,7 +136,7 @@ namespace API.Services
/// <param name="searchPattern">Defaults to *, meaning all files</param>
/// <returns></returns>
/// <exception cref="DirectoryNotFoundException"></exception>
- public bool CopyDirectoryToDirectory(string sourceDirName, string destDirName, string searchPattern = "*")
+ public static bool CopyDirectoryToDirectory(string sourceDirName, string destDirName, string searchPattern = "*")
{
if (string.IsNullOrEmpty(sourceDirName)) return false;
@@ -178,7 +178,7 @@ namespace API.Services
- public string[] GetFilesWithExtension(string path, string searchPatternExpression = "")
+ public static string[] GetFilesWithExtension(string path, string searchPatternExpression = "")
{
if (searchPatternExpression != string.Empty)
{