]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Added wxFileName::Exists().
[wxWidgets.git] / src / common / filename.cpp
index 29cf9acb3a516c1a49e3a3c5bab09ff2aeb5ff0c..a3f8ac3c5d1d5e3f4f08e410d213b0f67ad624e5 100644 (file)
@@ -732,6 +732,12 @@ bool wxFileName::DirExists( const wxString &dirPath )
     return wxFileSystemObjectExists(dirPath, wxFileSystemObject_Dir);
 }
 
+/* static */
+bool wxFileName::Exists(const wxString& path)
+{
+    return wxFileSystemObjectExists(path, wxFileSystemObject_Any);
+}
+
 // ----------------------------------------------------------------------------
 // CWD and HOME stuff
 // ----------------------------------------------------------------------------