git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18923
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\membersection{wxFileName::DirExists}\label{wxfilenamedirexists}
\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.
Returns true if the directory with this name exists.
\membersection{wxFileName::FileExists}\label{wxfilenamefileexists}
\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.
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}}
\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 IsOk() const { return !m_dirs.IsEmpty() || !m_name.IsEmpty(); }
// does the file with this name exists?
+ bool FileExists() const;
static bool FileExists( const wxString &file );
// does the directory with this name exists?
static bool FileExists( const wxString &file );
// does the directory with this name exists?
+ bool DirExists() const;
static bool DirExists( const wxString &dir );
// VZ: also need: IsDirWritable(), IsFileExecutable() &c (TODO)
static bool DirExists( const wxString &dir );
// VZ: also need: IsDirWritable(), IsFileExecutable() &c (TODO)
// existence tests
// ----------------------------------------------------------------------------
// existence tests
// ----------------------------------------------------------------------------
-bool wxFileName::FileExists()
+bool wxFileName::FileExists() const
{
return wxFileName::FileExists( GetFullPath() );
}
{
return wxFileName::FileExists( GetFullPath() );
}
return ::wxFileExists( file );
}
return ::wxFileExists( file );
}
-bool wxFileName::DirExists()
+bool wxFileName::DirExists() const
{
return wxFileName::DirExists( GetFullPath() );
}
{
return wxFileName::DirExists( GetFullPath() );
}