From 73c6f4296a58d43b7aee7eb3f740862b5eeb1d7f Mon Sep 17 00:00:00 2001 From: Edi Wang Date: Mon, 8 May 2023 15:38:27 +0800 Subject: [PATCH] show archived file count --- src/Edi.AzureBlobSync/Edi.AzureBlobSync.csproj | 13 +++---------- src/Edi.AzureBlobSync/Program.cs | 5 ++++- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/Edi.AzureBlobSync/Edi.AzureBlobSync.csproj b/src/Edi.AzureBlobSync/Edi.AzureBlobSync.csproj index 57184d3..8bef35b 100644 --- a/src/Edi.AzureBlobSync/Edi.AzureBlobSync.csproj +++ b/src/Edi.AzureBlobSync/Edi.AzureBlobSync.csproj @@ -3,9 +3,9 @@ Exe net6.0 - 1.15.3.0 - 1.15.3.0 - 1.15.3.0 + 1.16.0.0 + 1.16.0.0 + 1.16.0.0 true azblobsync MIT @@ -19,13 +19,6 @@ Azure - - - True - \ - - - diff --git a/src/Edi.AzureBlobSync/Program.cs b/src/Edi.AzureBlobSync/Program.cs index 8eb23f0..927a129 100644 --- a/src/Edi.AzureBlobSync/Program.cs +++ b/src/Edi.AzureBlobSync/Program.cs @@ -11,6 +11,7 @@ namespace Edi.AzureBlobSync; class Program { private static int _notDownloaded = 0; + private static int _archived = 0; public static Options Options { get; set; } @@ -152,7 +153,7 @@ await AnsiConsole.Status() } AnsiConsole.WriteLine("----------------------------------------------------"); - AnsiConsole.Write(new Markup($"Local Files Up to Date. [green]{excepts.Count - _notDownloaded}[/] new file(s) downloaded, [yellow]{deleteCount}[/] file(s) deleted.")); + AnsiConsole.Write(new Markup($"Local Files Up to Date. [green]{excepts.Count - _notDownloaded}[/] new file(s) downloaded, [yellow]{deleteCount}[/] file(s) deleted, {_archived} file(s) archived not downloaded.")); } catch (Exception e) { @@ -216,6 +217,8 @@ private static async Task DownloadAll(List excepts) else { _notDownloaded++; + _archived++; + AnsiConsole.Write(new Markup($"[yellow]Skipped download for archived file '{fileSyncInfo.FileName}', please move it to cool or hot tier.[/]\n")); } }