Compare commits
2 Commits
38322aa1c2
...
63fa071180
| Author | SHA1 | Date | |
|---|---|---|---|
| 63fa071180 | |||
| 3a1ddd7341 |
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user