Minor changes
Empty file ISO Add date back for just .kanbn Removed HardcodedFileSearchAndSort Sync with 01-23 JsonToTsv System.Text.Json White-List Ready to move to Move Helper Remove Whitelist Force Start At Check for .git directory before ls Optional Allow root for unc path nuget bump PreVerify EnforceCodeStyleInBuild dotnet_analyzer_diagnostic HelperGit searchDelegate Host File AlertIfNewDeviceIsConnected AOT SetFrontMatterAndH1 Match Error Unknown with better logging Undo 04-05 WriteAppendToHostConfFile MonA IsKanbanIndex Dotnet Format Pre-commit NPM CreateWindowsShortcut Working directory Split description Copy tests Ready to test Delete after a couple of days GitConfigCleanUp knb Files
This commit is contained in:
@ -34,6 +34,7 @@ internal static class HelperSaveOrCopyContents
|
||||
log.LogInformation("{empty}", string.Empty);
|
||||
continue;
|
||||
}
|
||||
#pragma warning disable IDE0072
|
||||
string fileName = dfb switch
|
||||
{
|
||||
ConsoleKey.D => "Directories",
|
||||
@ -41,6 +42,7 @@ internal static class HelperSaveOrCopyContents
|
||||
ConsoleKey.B => "Both",
|
||||
_ => throw new NotSupportedException(),
|
||||
};
|
||||
#pragma warning restore IDE0072
|
||||
string filePathAndName = Path.Combine(parentDirectory, $"{fileName}.txt");
|
||||
if (dfb == ConsoleKey.F)
|
||||
collection = Directory.GetFiles(argsZero, "*", searchOption).ToList();
|
||||
@ -79,7 +81,7 @@ internal static class HelperSaveOrCopyContents
|
||||
foreach (string file in files)
|
||||
{
|
||||
fileName = Path.GetFileName(file);
|
||||
if (fileName == fileName.ToLower())
|
||||
if (fileName.Equals(fileName, StringComparison.CurrentCultureIgnoreCase))
|
||||
continue;
|
||||
File.Move(file, file.ToLower());
|
||||
filesRenamed++;
|
||||
|
Reference in New Issue
Block a user