소스 검색

Ignore hidden files. Fixes #64

Eric Helgeson 2 년 전
부모
커밋
a758c65668
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/BlueSCSI_disk.cpp

+ 5 - 0
src/BlueSCSI_disk.cpp

@@ -480,6 +480,11 @@ bool scsiDiskFilenameValid(const char* name)
             }
         }
     }
+    if(name[0] == '.')
+    {
+        debuglog("-- Ignoring hidden file ", name);
+        return false;
+    }
     return true;
 }