aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSan Jacobs2025-12-19 22:40:58 +0100
committerSan Jacobs2025-12-19 22:40:58 +0100
commiteeb72b021c5c8d6ccafbcdbce398d848f49b053e (patch)
tree25dc6882bb16f095de530a3a7f3740464ca13d6e
parenta1a60d2bafac9ac34e9126a8b48f502c27c3a0c4 (diff)
downloadbetter-report-eeb72b021c5c8d6ccafbcdbce398d848f49b053e.tar.gz
better-report-eeb72b021c5c8d6ccafbcdbce398d848f49b053e.tar.bz2
better-report-eeb72b021c5c8d6ccafbcdbce398d848f49b053e.zip
Scoped out thing that doesn't exist on MacOSHEADmaster
-rw-r--r--src/main.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.odin b/src/main.odin
index e1b72ac..bc198b2 100644
--- a/src/main.odin
+++ b/src/main.odin
@@ -1044,7 +1044,9 @@ walk_directory :: proc(path : string, file_number : ^int, depth : int = 0) -> bo
if okr != os.ERROR_NONE {
indent_by(depth)
fmt.printf("ERROR [{}] reading dir: %s\n", okr, path)
- if okr == os.ERROR_FILE_IS_NOT_DIR do return true
+ when ODIN_OS == .Windows {
+ if okr == os.ERROR_FILE_IS_NOT_DIR do return true
+ }
return true
}