GetRecursiveLines only when
StartAt and Destination are supplied nuget-lower HelperGenealogicalDataCommunication
This commit is contained in:
@ -223,4 +223,20 @@ internal static class HelperSaveOrCopyContents
|
||||
}
|
||||
}
|
||||
|
||||
internal static void IgnoreCaseAndRenameFilesToLowercase(ILogger log, string argsZero)
|
||||
{
|
||||
string fileName;
|
||||
int filesRenamed = 0;
|
||||
string[] files = Directory.GetFiles(argsZero, "*", SearchOption.TopDirectoryOnly);
|
||||
foreach (string file in files)
|
||||
{
|
||||
fileName = Path.GetFileName(file);
|
||||
if (fileName == fileName.ToLower())
|
||||
continue;
|
||||
File.Move(file, file.ToLower());
|
||||
filesRenamed++;
|
||||
}
|
||||
log.LogInformation("{filesRenamed}(s) renamed", filesRenamed);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user