diff --git a/ADO2024/PI1/Helper-2024-04-03.cs b/ADO2024/PI1/Helper-2024-04-03.cs index 7e0ff17..e284d41 100644 --- a/ADO2024/PI1/Helper-2024-04-03.cs +++ b/ADO2024/PI1/Helper-2024-04-03.cs @@ -42,7 +42,7 @@ internal static partial class Helper20240403 string keyIndex = args[5]; string directory = args[0]; logger.LogInformation(directory); - string[] columns = args[4].Split('|'); + string[] columns = args[4].Split('~'); DynamicHostConfigurationProtocolConfiguration dynamicHostConfigurationProtocolConfiguration = new(columns, directory, ignore, int.Parse(keyIndex), pattern, primary); AlertIfNewDeviceIsConnected(dynamicHostConfigurationProtocolConfiguration, logger); } diff --git a/ADO2024/PI3/Helper-2024-09-11.cs b/ADO2024/PI3/Helper-2024-09-11.cs index 5d5abf8..1bfd8d9 100644 --- a/ADO2024/PI3/Helper-2024-09-11.cs +++ b/ADO2024/PI3/Helper-2024-09-11.cs @@ -701,7 +701,7 @@ internal static partial class Helper20240911 List spaces = []; List lines = []; ReadOnlyCollection results; - string[] workItemTypes = args[4].Split('|'); + string[] workItemTypes = args[4].Split('~'); string sourceDirectory = Path.GetFullPath(args[0]); string destinationDirectory = Path.GetFullPath(args[6]); if (!Directory.Exists(destinationDirectory)) diff --git a/ADO2024/PI4/Helper-2024-12-12.cs b/ADO2024/PI4/Helper-2024-12-12.cs index 4e43f1d..90c34f3 100644 --- a/ADO2024/PI4/Helper-2024-12-12.cs +++ b/ADO2024/PI4/Helper-2024-12-12.cs @@ -12,7 +12,7 @@ internal static partial class Helper20241212 string newFileName; string directoryName; string searchPattern = args[2]; - string[] searchPatterns = args[3].Split('|'); + string[] searchPatterns = args[3].Split('~'); string sourceDirectory = Path.GetFullPath(args[0]); string[] files = Directory.GetFiles(sourceDirectory, searchPattern, SearchOption.AllDirectories); if (files.Length == 0) diff --git a/ADO2024/PI4/Helper-2024-12-17.cs b/ADO2024/PI4/Helper-2024-12-17.cs index a3e1c19..3b3492b 100644 --- a/ADO2024/PI4/Helper-2024-12-17.cs +++ b/ADO2024/PI4/Helper-2024-12-17.cs @@ -58,7 +58,7 @@ internal static partial class Helper20241217 string directoryName; ReadOnlyCollection files; string searchPattern = args[2]; - string[] ignoreFileNames = args[3].Split('|'); + string[] ignoreFileNames = args[3].Split('~'); string sourceDirectory = Path.GetFullPath(args[0]); char destinationDriveLetter = args[4].Split(':')[0][0]; logger.LogInformation("Searching <{sourceDirectory}> with search pattern {searchPattern}", args[0], searchPattern); diff --git a/ADO2025/PI4/Helper-2025-01-14.cs b/ADO2025/PI4/Helper-2025-01-14.cs index 728d26f..3471361 100644 --- a/ADO2025/PI4/Helper-2025-01-14.cs +++ b/ADO2025/PI4/Helper-2025-01-14.cs @@ -45,7 +45,7 @@ internal static partial class Helper20250114 internal static void Rename(ILogger logger, List args) { string dateFormat = args[3]; - string[] searchPatterns = args[2].Split('|'); + string[] searchPatterns = args[2].Split('~'); string sourceDirectory = Path.GetFullPath(args[0]); foreach (string searchPattern in searchPatterns) Rename(logger, sourceDirectory, searchPattern, dateFormat); diff --git a/ADO2025/PI5/Helper-2025-03-15.cs b/ADO2025/PI5/Helper-2025-03-15.cs index 45bedc9..466cde8 100644 --- a/ADO2025/PI5/Helper-2025-03-15.cs +++ b/ADO2025/PI5/Helper-2025-03-15.cs @@ -7,7 +7,7 @@ namespace File_Folder_Helper.ADO2025.PI5; internal static partial class Helper20250315 { internal static void Empty(ILogger logger, List args) { - string[] searchPatterns = args[2].Split('|'); + string[] searchPatterns = args[2].Split('~'); string sourceDirectory = Path.GetFullPath(args[0]); if (searchPatterns.Length == 1) { string[] files = Directory.GetFiles(sourceDirectory, searchPatterns[0], SearchOption.AllDirectories); diff --git a/ADO2025/PI5/Helper-2025-03-21.cs b/ADO2025/PI5/Helper-2025-03-21.cs index 9fbda8a..91014f7 100644 --- a/ADO2025/PI5/Helper-2025-03-21.cs +++ b/ADO2025/PI5/Helper-2025-03-21.cs @@ -81,7 +81,7 @@ internal static partial class Helper20250321 { } internal static void MoveToLast(ILogger logger, List args) { - string[] searchPatterns = args[2].Split('|'); + string[] searchPatterns = args[2].Split('~'); string sourceDirectory = Path.GetFullPath(args[0]); if (searchPatterns.Length == 1) logger.LogInformation("No code for just one!"); diff --git a/ADO2025/PI5/Helper-2025-04-07.cs b/ADO2025/PI5/Helper-2025-04-07.cs index 8b609c4..38ddeda 100644 --- a/ADO2025/PI5/Helper-2025-04-07.cs +++ b/ADO2025/PI5/Helper-2025-04-07.cs @@ -151,12 +151,12 @@ internal static partial class Helper20250407 { internal static void Sync(ILogger logger, List args) { Matcher matcher = new(); string fileName = $"{args[1]}.json"; - string[] segments = args[5].Split('|'); - string rightDirectory = Path.GetFullPath(args[0].Split('|')[0]); + string[] segments = args[5].Split('~'); + string rightDirectory = Path.GetFullPath(args[0].Split('~')[0]); Logic? logic = segments.Length != 5 ? null : Logic.Get(segments); string includePatternsFile = Path.Combine(rightDirectory, args[2]); string excludePatternsFile = Path.Combine(rightDirectory, args[3]); - string[] rootUniformResourceLocators = args.Count < 5 ? [] : args[4].Split('|'); + string[] rootUniformResourceLocators = args.Count < 5 ? [] : args[4].Split('~'); matcher.AddIncludePatterns(!File.Exists(includePatternsFile) ? ["*"] : File.ReadAllLines(includePatternsFile)); matcher.AddExcludePatterns(!File.Exists(excludePatternsFile) ? ["System Volume Information"] : File.ReadAllLines(excludePatternsFile)); ReadOnlyCollection rightRecords = GetRecords(rightDirectory, matcher); diff --git a/ADO2025/PI5/Helper-2025-04-21.cs b/ADO2025/PI5/Helper-2025-04-21.cs index 758c8d6..c4354be 100644 --- a/ADO2025/PI5/Helper-2025-04-21.cs +++ b/ADO2025/PI5/Helper-2025-04-21.cs @@ -6,7 +6,7 @@ internal static partial class Helper20250421 { internal static void FreeFileSyncChangeCreatedDate(ILogger logger, List args) { string searchPattern = args[2]; - string[] searchPatterns = args[3].Split('|'); + string[] searchPatterns = args[3].Split('~'); string sourceDirectory = Path.GetFullPath(args[0]); if (searchPatterns.Length != 2) throw new NotImplementedException($"Not the correct number of {searchPatterns} were passed!"); diff --git a/Worker.cs b/Worker.cs index 356cd52..3fbbfd2 100644 --- a/Worker.cs +++ b/Worker.cs @@ -147,7 +147,7 @@ public class Worker : BackgroundService _Logger.LogWarning("Must pass a argument!"); CreateWindowsShortcut(); } - else if (Directory.Exists(_Args[0].Split('|')[0]) || Directory.Exists(_Args[0])) + else if (Directory.Exists(_Args[0].Split('~')[0]) || Directory.Exists(_Args[0])) { if (!_ConsoleKeys.Contains(consoleKey)) {