diff options
author | San Jacobs | 2025-06-06 05:27:35 +0200 |
---|---|---|
committer | San Jacobs | 2025-06-06 05:27:35 +0200 |
commit | a60b8ca2c45549360cdb45b5fc6dae63c83a9fc9 (patch) | |
tree | 212484065bed64b2594ff6e0e20f14cad3f496a6 /main.odin | |
parent | abe4508a42661b0e5181f6404f735131ed6329a3 (diff) | |
download | better-report-a60b8ca2c45549360cdb45b5fc6dae63c83a9fc9.tar.gz better-report-a60b8ca2c45549360cdb45b5fc6dae63c83a9fc9.tar.bz2 better-report-a60b8ca2c45549360cdb45b5fc6dae63c83a9fc9.zip |
Comfy printing!
Diffstat (limited to 'main.odin')
-rwxr-xr-x | main.odin | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -64,7 +64,7 @@ main :: proc() { if error == os.ERROR_NONE {
file_list : [dynamic]string
- file_count := 0
+ file_count := 1
if(path_info.is_dir) {
fmt.println("Directory submitted! Walking directory...\n")
fmt.printf("š {}\n", path_info.name)
@@ -74,10 +74,10 @@ main :: proc() { append(&file_list, strings.clone(path_info.fullpath))
}
- fmt.println(file_list)
-
- for file in file_list {
+ for file, f in file_list {
+
file_info, _ := os.stat(file)
+ fmt.printf("\nš File {}: {}\n", f+1, file_info.name)
parsed, ok_parse := parse(file_info.fullpath)
if !ok_parse {
fmt.printf("Parse failed: {}\n", file_info.fullpath)
|