]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dircmn.cpp
fixed status bar drawing broken by previous compilation fix
[wxWidgets.git] / src / common / dircmn.cpp
index 2fa41e06da709fa6bf61a508e6a451aae3abda39..ca35534dcf8b15c5f6e43c2b8fdd1e2ea639923a 100644 (file)
 // implementation
 // ============================================================================
 
+// ----------------------------------------------------------------------------
+// wxDir::HasFiles() and HasSubDirs()
+// ----------------------------------------------------------------------------
+
+// dumb generic implementation
+
+bool wxDir::HasFiles(const wxString& spec)
+{
+    wxString s;
+    return GetFirst(&s, spec, wxDIR_FILES | wxDIR_HIDDEN);
+}
+
+// we have a (much) faster version for Unix
+#ifndef __UNIX_LIKE__
+
+bool wxDir::HasSubDirs(const wxString& spec)
+{
+    wxString s;
+    return GetFirst(&s, spec, wxDIR_DIRS | wxDIR_HIDDEN);
+}
+
+#endif // !Unix
+
 // ----------------------------------------------------------------------------
 // wxDir::Traverse()
 // ----------------------------------------------------------------------------