aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
}