X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8daf3c366409ae9b9f657370c43cc15896704b14..42eba91294e1c374908b63bdc5f22a5c4c29f110:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 0db4c1e6bb..3915a0176b 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -472,6 +472,11 @@ inline bool wxPathExists(const wxChar *pszPathName) } #endif //WXWIN_COMPATIBILITY_2_6 +// permissions; these functions work both on files and directories: +WXDLLIMPEXP_BASE bool wxIsWritable(const wxString &path); +WXDLLIMPEXP_BASE bool wxIsReadable(const wxString &path); +WXDLLIMPEXP_BASE bool wxIsExecutable(const wxString &path); + // ---------------------------------------------------------------------------- // separators in file names // ---------------------------------------------------------------------------- @@ -545,9 +550,13 @@ WXDLLIMPEXP_BASE bool wxFindFileInPath(wxString *pStr, const wxChar *pszPath, co // On non-Windows platform, probably just return the empty string. WXDLLIMPEXP_BASE wxString wxGetOSDirectory(); +#if wxUSE_DATETIME + // Get file modification time WXDLLIMPEXP_BASE time_t wxFileModificationTime(const wxString& filename); +#endif // wxUSE_DATETIME + // Parses the wildCard, returning the number of filters. // Returns 0 if none or if there's a problem, // The arrays will contain an equal number of items found before the error. @@ -602,9 +611,6 @@ public: wxPathList(const wxArrayString &arr) { Add(arr); } - // avoid GCC warning about virtual functions w/o virtual dtor - virtual ~wxPathList() {} - // Adds all paths in environment variable void AddEnvList(const wxString& envVariable);