Returns TRUE if the file exists. It also returns TRUE if the file is
a directory.
+\membersection{::wxFileModificationTime}
+
+\func{time_t}{wxFileModificationTime}{\param{const wxString\& }{filename}}
+
+Returns time of last modification of given file.
+
+
\membersection{::wxFileNameFromPath}
\func{wxString}{wxFileNameFromPath}{\param{const wxString\& }{path}}
#include "wx/list.h"
+#include <time.h>
+
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
// On non-Windows platform, probably just return the empty string.
WXDLLEXPORT wxString wxGetOSDirectory();
+// Get file modification time
+WXDLLEXPORT time_t wxFileModificationTime(const wxString& filename);
+
// ----------------------------------------------------------------------------
// classes
// ----------------------------------------------------------------------------
}
}
+
+
+time_t WXDLLEXPORT wxFileModificationTime(const wxString& filename)
+{
+ struct stat buf;
+
+ stat(filename.fn_str(), &buf);
+ return buf.st_mtime;
+}
+
+
//------------------------------------------------------------------------
// wild character routines
//------------------------------------------------------------------------