From 44f15f25c6fa68201c55f24c56cd862ce05df8c7 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Wed, 3 Nov 2021 09:43:03 -0500 Subject: [PATCH] Breaking Changes: Docker Parity (#715) * Fixed a bug in the copy directory to directory in the migration * Somehow GetFiles lost static modifier. --- API/Services/DirectoryService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 GetFiles(string path, string searchPatternExpression = "", + public static IEnumerable GetFiles(string path, string searchPatternExpression = "", SearchOption searchOption = SearchOption.TopDirectoryOnly) { if (searchPatternExpression != string.Empty) @@ -136,7 +136,7 @@ namespace API.Services /// Defaults to *, meaning all files /// /// - 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) {