summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_lib.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysys/my_lib.c b/mysys/my_lib.c
index 055e00d2efc..21c558ed489 100644
--- a/mysys/my_lib.c
+++ b/mysys/my_lib.c
@@ -461,6 +461,15 @@ MY_DIR *my_dir(const char *path, myf MyFlags)
else
finfo.mystat= NULL;
+ /*
+ Do not show hidden or system files which Windows sometimes creates. We
+ would need to see how this can be achieved with a Borland compiler.
+ */
+#ifndef __BORLANDC__
+ if (attrib & (_A_HIDDEN | _A_SYSTEM))
+ continue;
+#endif
+
if (push_dynamic(dir_entries_storage, (gptr)&finfo))
goto error;