GetAlternateFileLines
This commit is contained in:
@ -92,9 +92,9 @@ public class CopyDistinct
|
||||
return (move, filesCollection, anyLenFiles, moveBack);
|
||||
}
|
||||
|
||||
private static (string[], List<(FileHolder, string)>) GetMoveBackToDoCollection(List<string[]> filesCollection)
|
||||
private static (string[], List<(FileHolder, string?, string)>) GetMoveBackToDoCollection(List<string[]> filesCollection)
|
||||
{
|
||||
List<(FileHolder, string)> results = new();
|
||||
List<(FileHolder, string?, string)> results = new();
|
||||
string key;
|
||||
string? value;
|
||||
string fileName;
|
||||
@ -146,7 +146,7 @@ public class CopyDistinct
|
||||
directory = Path.GetDirectoryName(value);
|
||||
if (string.IsNullOrEmpty(directory))
|
||||
continue;
|
||||
results.Add(new(new(file), value));
|
||||
results.Add(new(new(file), null, value));
|
||||
if (!distinctDirectories.Contains(directory))
|
||||
distinctDirectories.Add(directory);
|
||||
}
|
||||
@ -161,7 +161,7 @@ public class CopyDistinct
|
||||
string[] distinctDirectories;
|
||||
ConsoleKey? consoleKey = null;
|
||||
string message = nameof(CopyDistinct);
|
||||
List<(FileHolder, string)> toDoCollection;
|
||||
List<(FileHolder, string?, string)> toDoCollection;
|
||||
int count = filesCollection.Select(l => l.Length).Sum();
|
||||
ProgressBarOptions options = new() { ProgressCharacter = '─', ProgressBarOnBottom = true, DisableBottomPercentage = true };
|
||||
if (moveBack)
|
||||
|
Reference in New Issue
Block a user