mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Breaking Changes: Docker Parity (#715)
* Fixed a bug in the copy directory to directory in the migration * Somehow GetFiles lost static modifier.
This commit is contained in:
parent
7bfd2c432d
commit
44f15f25c6
@ -97,7 +97,7 @@ namespace API.Services
|
|||||||
return di.Exists;
|
return di.Exists;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<string> GetFiles(string path, string searchPatternExpression = "",
|
public static IEnumerable<string> GetFiles(string path, string searchPatternExpression = "",
|
||||||
SearchOption searchOption = SearchOption.TopDirectoryOnly)
|
SearchOption searchOption = SearchOption.TopDirectoryOnly)
|
||||||
{
|
{
|
||||||
if (searchPatternExpression != string.Empty)
|
if (searchPatternExpression != string.Empty)
|
||||||
@ -136,7 +136,7 @@ namespace API.Services
|
|||||||
/// <param name="searchPattern">Defaults to *, meaning all files</param>
|
/// <param name="searchPattern">Defaults to *, meaning all files</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
/// <exception cref="DirectoryNotFoundException"></exception>
|
/// <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;
|
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)
|
if (searchPatternExpression != string.Empty)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user