Compare commits

...

2 Commits

Author SHA1 Message Date
63fa071180 Merge remote-tracking branch 'main/master'
# Conflicts:
#	Program.cs
2025-12-16 23:28:22 -05:00
3a1ddd7341 download in parallel 2025-12-16 23:27:50 -05:00

View File

@@ -107,7 +107,7 @@ static async Task RunJob(Config config, CancellationToken token)
static async Task RecurseDirectory(SftpClient client, string source, string destination, bool deleteDirectory, CancellationToken token) static async Task RecurseDirectory(SftpClient client, string source, string destination, bool deleteDirectory, CancellationToken token)
{ {
Log.Information($"Scanning directory '{source}'"); Log.Information($"Scanning directory '{source}'");
Parallel.ForEachAsync(client.ListDirectoryAsync(source, token), token, async (item,token) => await Parallel.ForEachAsync(client.ListDirectoryAsync(source, token), token, async (item,token) =>
{ {
if (item.Name is ".." or ".") return; if (item.Name is ".." or ".") return;