Let's try to be fancy

This commit is contained in:
Matt Nadareski
2025-09-02 22:04:02 -04:00
parent e883f0c7d4
commit 138842318a
3 changed files with 35 additions and 7 deletions

View File

@@ -134,7 +134,13 @@ namespace ProtectionScan
/// </summary>
private static void Changed(object? source, ProtectionProgress value)
{
Console.WriteLine($"{value.Percentage * 100:N2}%: {value.Filename} - {value.Protection}");
string prefix = string.Empty;
for (int i = 0; i < value.Depth; i++)
{
prefix += "--> ";
}
Console.WriteLine($"{prefix}{value.Percentage * 100:N2}%: {value.Filename} - {value.Protection}");
}
}
}