X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76cfd1bf95045676ab0078c45e8b5c9f2c021632..64ea838d8f4d1853b7d850db93ee565e901d099a:/include/wx/private/fswatcher.h diff --git a/include/wx/private/fswatcher.h b/include/wx/private/fswatcher.h index abdc8e244c..4b7a894428 100644 --- a/include/wx/private/fswatcher.h +++ b/include/wx/private/fswatcher.h @@ -89,6 +89,12 @@ public: return true; } + // Check whether any filespec matches the file's ext (if present) + bool MatchesFilespec(const wxFileName& fn, const wxString& filespec) const + { + return filespec.empty() || wxMatchWild(filespec, fn.GetFullName()); + } + protected: virtual bool DoAdd(wxSharedPtr watch) = 0;