mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2025-06-19 12:40:00 +02:00
Tweak report formatting and words
This commit is contained in:
parent
26ea4f90b1
commit
4ef1942a6a
@ -18,7 +18,7 @@ namespace BackupEssentials.Backup{
|
|||||||
if (line.Length == 0)continue;
|
if (line.Length == 0)continue;
|
||||||
|
|
||||||
if (line[0] == 'I')build.Append(line.Substring(1)).Append(Environment.NewLine);
|
if (line[0] == 'I')build.Append(line.Substring(1)).Append(Environment.NewLine);
|
||||||
else if (line[0] == 'A' && line.Length > 3)build.Append(GetFullNameAction(line[1])).Append(' ').Append(GetFullNameType(line[2])).Append(' ').Append(line.Substring(3)).Append(Environment.NewLine);
|
else if (line[0] == 'A' && line.Length > 3)build.Append(GetFullNameAction(line[1])).Append(' ').Append(GetFullNameType(line[2])).Append(": ").Append(line.Substring(3)).Append(Environment.NewLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
_parsed = build.ToString();
|
_parsed = build.ToString();
|
||||||
@ -65,7 +65,7 @@ namespace BackupEssentials.Backup{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static string GetFullNameType(char key){
|
private static string GetFullNameType(char key){
|
||||||
return key == 'F' ? "File" : key == 'D' ? "Folder" : "(unknown type)";
|
return key == 'F' ? "File" : key == 'D' ? "Folder (and files inside)" : "(unknown type)";
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IEnumerable<string> SplitByLine(string str){
|
private static IEnumerable<string> SplitByLine(string str){
|
||||||
|
Loading…
Reference in New Issue
Block a user