~ over | split
This commit is contained in:
@ -151,12 +151,12 @@ internal static partial class Helper20250407 {
|
||||
internal static void Sync(ILogger<Worker> logger, List<string> 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<Record> rightRecords = GetRecords(rightDirectory, matcher);
|
||||
|
Reference in New Issue
Block a user