Fix indentation of report output for file / dir listing.

This commit is contained in:
zontreck 2024-08-24 07:55:04 -07:00
parent 5a53f161e0
commit 7c1c7879da

View file

@ -16,7 +16,7 @@ import 'package:libac_dart/consts.dart';
import 'package:libac_dart/utils/IOTools.dart';
Future<int> main(List<String> args) async {
String VERSION = "1.0.082424.0751";
String VERSION = "1.0.082424.0753";
bool verbose = false;
String HEADER =
"Make File System Report\nVersion: $VERSION\nUsing LibAC Version: ${Constants.VERSION}\nAuthor: Tara Piccari\n\n";
@ -154,13 +154,12 @@ Future<String> generateTextReport(FileInformationCache FIC,
This program was created by Tara Piccari, as a part of the Aria's Creations common code library as a helper utility.
Aria's Creations is a alias for online-only works. Aria is an anagram derived from my name. piccARI, tarA. You place my last name first, take the last 3, skip the first 3 in my first name and take the remaining character(s) and you have my alias.
This utility analyzed the specified folder path to generate a detailed report of directory and file sizes as seen below.
This utility analyzed the specified folder path to generate a detailed report of directory and file sizes as seen below.\n
''';
for (var entry in (await FIC.getOrderedList(ascending: ascending))) {
header += '''
${entry.isFile ? "FILE" : "DIR"} ${entry.toString()} ${entry.path}
''';
header +=
" ${entry.isFile ? "FILE" : "DIR"} ${entry.toString()} ${entry.path}\n";
}
return header;