\membersection{wxFileName::DirExists}\label{wxfilenamedirexists}
-\func{bool}{DirExists}{\void}
+\constfunc{bool}{DirExists}{\void}
-\func{bool}{DirExists}{\param{const wxString\& }{dir}}
+\func{static bool}{DirExists}{\param{const wxString\& }{dir}}
Returns true if the directory with this name exists.
\membersection{wxFileName::FileExists}\label{wxfilenamefileexists}
-\func{bool}{FileExists}{\void}
+\constfunc{bool}{FileExists}{\void}
-\func{bool}{FileExists}{\param{const wxString\& }{file}}
+\func{static bool}{FileExists}{\param{const wxString\& }{file}}
Returns true if the file with this name exists.
+\wxheading{See also}
+
+\helpref{DirExists}{wxfilenamedirexists}
+
\membersection{wxFileName::FileName}\label{wxfilenamefilename}
\func{wxFileName}{FileName}{\param{const wxString\& }{file}}
bool IsOk() const { return !m_dirs.IsEmpty() || !m_name.IsEmpty(); }
// does the file with this name exists?
- bool FileExists();
+ bool FileExists() const;
static bool FileExists( const wxString &file );
// does the directory with this name exists?
- bool DirExists();
+ bool DirExists() const;
static bool DirExists( const wxString &dir );
// VZ: also need: IsDirWritable(), IsFileExecutable() &c (TODO)
// existence tests
// ----------------------------------------------------------------------------
-bool wxFileName::FileExists()
+bool wxFileName::FileExists() const
{
return wxFileName::FileExists( GetFullPath() );
}
return ::wxFileExists( file );
}
-bool wxFileName::DirExists()
+bool wxFileName::DirExists() const
{
return wxFileName::DirExists( GetFullPath() );
}