nuget bump
2023-11-02 2023-11-08 net8.0 editorconfig NuGet NuSpec Kanban
This commit is contained in:
@ -24,7 +24,7 @@ internal static class HelperDeleteEmptyDirectories
|
||||
}
|
||||
}
|
||||
if (directories.Length > 0)
|
||||
files = Array.Empty<string>();
|
||||
files = [];
|
||||
else
|
||||
files = Directory.GetFiles(checkDirectory, "*", SearchOption.TopDirectoryOnly);
|
||||
if (directories.Length == 0 && files.Length == 0)
|
||||
@ -40,7 +40,7 @@ internal static class HelperDeleteEmptyDirectories
|
||||
}
|
||||
else
|
||||
{
|
||||
List<string> check = new();
|
||||
List<string> check = [];
|
||||
foreach (string directory in directories)
|
||||
{
|
||||
DeleteOldLogFilesAndDeleteEmptyDirectories(ticks, searchPattern, directory, check);
|
||||
@ -53,7 +53,7 @@ internal static class HelperDeleteEmptyDirectories
|
||||
|
||||
private static void DeleteOldLogFilesAndDeleteEmptyDirectories(ILogger<Worker> logger, long? ticks, string? searchPattern, string rootDirectory)
|
||||
{
|
||||
List<string> check = new();
|
||||
List<string> check = [];
|
||||
List<string> directories = Directory.GetDirectories(rootDirectory, "*", SearchOption.TopDirectoryOnly).ToList();
|
||||
directories.Add(rootDirectory);
|
||||
foreach (string directory in directories)
|
||||
|
Reference in New Issue
Block a user