1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxFileName documentation
4 %% Author: Vadim Zeitlin
8 %% Copyright: (c) 2001 Vadim Zeitlin
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxFileName
}}\label{wxfilename
}
14 wxFileName encapsulates a file name. This class serves two purposes: first, it
15 provides the functions to split the file names into components and to recombine
16 these components in the full file name which can then be passed to the OS file
17 functions (and
\helpref{wxWindows functions
}{filefunctions
} wrapping them).
18 Second, it includes the functions for working with the files itself. Note that
19 to change the file data you should use
\helpref{wxFile
}{wxfile
} class instead,
20 wxFileName provides functions for working with the file attributes.
22 \wxheading{Derived from
}
26 \wxheading{Data structures
}
28 Many wxFileName methods accept the path format argument which is by
\rtfsp
29 {\tt wxPATH
\_NATIVE} by default meaning to use the path format native for the
32 The path format affects the operation of wxFileName functions in several ways:
33 first and foremost, it defines the path separator character to use, but it also
34 affects other things such as whether the path has the drive part or not.
39 wxPATH_NATIVE =
0, // the path format for the current platform
45 wxPATH_BEOS = wxPATH_UNIX,
46 wxPATH_WIN = wxPATH_DOS,
47 wxPATH_OS2 = wxPATH_DOS
51 The kind of normalization to do with the file name: these values can be
52 or'd together to perform several operations at once in
\rtfsp
53 \helpref{Normalize
}{wxfilenamenormalize
}.
58 wxPATH_NORM_ENV_VARS =
0x0001, // replace env vars with their values
59 wxPATH_NORM_DOTS =
0x0002, // squeeze all .. and . and prepend cwd
60 wxPATH_NORM_TILDE =
0x0004, // Unix only: replace ~ and ~user
61 wxPATH_NORM_CASE =
0x0008, // if case insensitive => tolower
62 wxPATH_NORM_ABSOLUTE =
0x0010, // make the path absolute
63 wxPATH_NORM_LONG =
0x0020, // make the path the long form
64 wxPATH_NORM_ALL =
0x003f
68 \latexignore{\rtfignore{\wxheading{Function groups
}}}
70 \membersection{File name format
}
72 wxFileName currently supports the file names in the Unix, DOS/Windows, Mac OS
73 and VMS formats. Although these formats are quite different, wxFileName tries
74 to treat them all in the sam generic way. It supposes that all file names
75 consist of the following parts: the volume (also known as drive under Windows
76 or device under VMS), the path which is a sequence of directory names separated
77 by the
\helpref{path separators
}{wxfilenamegetpathseparators
} and the full
78 filename itself which, in turn, is composed from the base file name and the
79 extension. All of the individual components of the file name may be empty and,
80 for example, the volume name is always empty under Unix, but if they are all
81 empty simultaneously, the filename object is considered to be in an invalid
82 state and
\helpref{IsOk
}{wxfilenameisok
} returns
{\tt FALSE
} for it.
84 File names can be case-sensitive or not, the function
\rtfsp
85 \helpref{IsCaseSensitive
}{wxfilenameiscasesensitive
} allows to determine this.
87 The rules for determining if the file name is absolute or relative also depends
88 on the file name format and the only portable way to answer to this question is
89 to use
\helpref{IsAbsolute
}{wxfilenameisabsolute
} method. To ensure that the
90 filename is absolute you may use
\helpref{Normalize
}{wxfilenamenormalize
}. There
91 is also an inverse function
\helpref{MakeRelativeTo
}{wxfilenamemakerelativeto
}
92 which undoes what
\helpref{Normalize(wxPATH
\_NORM\_DOTS}{wxfilenamenormalize
}
95 Other functions returning information about the file format provided by this
96 class are
\helpref{GetVolumeSeparator
}{wxfilenamegetvolumeseparator
},
\rtfsp
97 \helpref{IsPathSeparator
}{wxfilenameispathseparator
} and
\rtfsp
98 \helpref{IsWild
}{wxfilenameiswild
}.
100 \helpref{IsRelative
}{wxfilenameisrelative
}
102 \membersection{File name construction
}
106 \membersection{File tests
}
108 Before doing the other tests you should use
\helpref{IsOk
}{wxfilenameisok
} to
109 verify that the filename is well defined. If it is,
110 \helpref{FileExists
}{wxfilenamefileexists
} can be used to test if a file with
111 such name exists and
\helpref{DirExists
}{wxfilenamedirexists
} - if a directory
112 with this name exists.
114 File names should be compared using
\helpref{SameAs
}{wxfilenamesameas
} method
115 or
\helpref{$==$
}{wxfilenameoperatorequal
}.
117 \membersection{File name components
}
119 These functions allow to examine and modify the directories of the path:
121 \helpref{AppendDir
}{wxfilenameappenddir
}\\
122 \helpref{InsertDir
}{wxfilenameinsertdir
}\\
123 \helpref{GetDirCount
}{wxfilenamegetdircount
}
124 \helpref{PrependDir
}{wxfilenameprependdir
}\\
125 \helpref{RemoveDir
}{wxfilenameremovedir
}
127 To change the components of the file name individually you can use the
130 \helpref{GetExt
}{wxfilenamegetext
}\\
131 \helpref{GetName
}{wxfilenamegetname
}\\
132 \helpref{GetVolume
}{wxfilenamegetvolume
}\\
133 \helpref{HasExt
}{wxfilenamehasext
}\\
134 \helpref{HasName
}{wxfilenamehasname
}\\
135 \helpref{HasVolume
}{wxfilenamehasvolume
}\\
136 \helpref{SetExt
}{wxfilenamesetext
}\\
137 \helpref{SetName
}{wxfilenamesetname
}\\
138 \helpref{SetVolume
}{wxfilenamesetvolume
}\\
140 \membersection{Operations
}
142 These methods allow to work with the file creation, access and modification
143 times. Note that not all filesystems under all platforms implement these times
144 in the same way. For example, the access time under Windows has a resolution of
145 one day (so it is really the access date and not time). The access time may be
146 updated when the file is executed or not depending on the platform.
148 \helpref{GetModificationTime
}{wxfilenamegetmodificationtime
}\\
149 \helpref{GetTimes
}{wxfilenamegettimes
}\\
150 \helpref{SetTimes
}{wxfilenamesettimes
}\\
151 \helpref{Touch
}{wxfilenametouch
}
153 Other file system operations functions are:
155 \helpref{Mkdir
}{wxfilenamemkdir
}\\
156 \helpref{Rmdir
}{wxfilenamermdir
}
158 \latexignore{\rtfignore{\wxheading{Members
}}}
160 \membersection{wxFileName::wxFileName
}\label{wxfilenamewxfilename
}
162 \func{}{wxFileName
}{\void}
166 \func{}{wxFileName
}{\param{const wxFileName\&
}{filename
}}
170 \func{}{wxFileName
}{\param{const wxString\&
}{fullpath
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
172 From a full filename: if it terminates with a '/', a directory path
173 is contructed (the name will be empty), otherwise a file name and
174 extension are extracted from it
176 \func{}{wxFileName
}{\param{const wxString\&
}{path
},
\param{const wxString\&
}{name
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
178 Constructor from a directory name and a file name.
180 \func{}{wxFileName
}{\param{const wxString\&
}{path
},
\param{const wxString\&
}{name
},
\param{const wxString\&
}{ext
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
182 Constructor from a directory name, base file name and extension
184 \func{}{wxFileName
}{\param{const wxString\&
}{volume
},
\param{const wxString\&
}{path
},
\param{const wxString\&
}{name
},
\param{const wxString\&
}{ext
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
186 Constructor from a volume name, a directory name, base file name and extension
188 \membersection{wxFileName::AppendDir
}\label{wxfilenameappenddir
}
190 \func{void
}{AppendDir
}{\param{const wxString\&
}{dir
}}
193 \membersection{wxFileName::Assign
}\label{wxfilenameassign
}
195 \func{void
}{Assign
}{\param{const wxFileName\&
}{filepath
}}
197 \func{void
}{Assign
}{\param{const wxString\&
}{fullpath
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
199 \func{void
}{Assign
}{\param{const wxString\&
}{volume
},
\param{const wxString\&
}{path
},
\param{const wxString\&
}{name
},
\param{const wxString\&
}{ext
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
201 \func{void
}{Assign
}{\param{const wxString\&
}{path
},
\param{const wxString\&
}{name
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
203 \func{void
}{Assign
}{\param{const wxString\&
}{path
},
\param{const wxString\&
}{name
},
\param{const wxString\&
}{ext
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
206 \membersection{wxFileName::AssignCwd
}\label{wxfilenameassigncwd
}
208 \func{void
}{AssignCwd
}{\param{const wxString\&
}{volume = ""
}}
210 Makes this object refer to the current working directory on the specified
211 volume (or current volume if
{\it volume
} is empty).
215 \helpref{GetCwd
}{wxfilenamegetcwd
}
217 \membersection{wxFileName::AssignDir
}\label{wxfilenameassigndir
}
219 \func{void
}{AssignDir
}{\param{const wxString\&
}{dir
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
221 Set this file name object to the given directory name. The name and extension
224 \membersection{wxFileName::AssignHomeDir
}\label{wxfilenameassignhomedir
}
226 \func{void
}{AssignHomeDir
}{\void}
228 Set this file name object to the home directory.
230 \membersection{wxFileName::AssignTempFileName
}\label{wxfilenameassigntempfilename
}
232 \func{void
}{AssignTempFileName
}{\param{const wxString\&
}{prefix
},
\param{wxFile *
}{fileTemp =
{\tt NULL
}}}
234 The function calls
\helpref{CreateTempFileName
}{wxfilenamecreatetempfilename
} to
235 create a temporary file and sets this object to the name of the file. If a
236 temporary file couldn't be created, the object is put into the
\rtfsp
237 \helpref{invalid
}{wxfilenameisok
} state.
239 \membersection{wxFileName::Clear
}\label{wxfilenameclear
}
241 \func{void
}{Clear
}{\void}
243 Reset all components to default, uninitialized state.
245 \membersection{wxFileName::CreateTempFileName
}\label{wxfilenamecreatetempfilename
}
247 \func{static wxString
}{CreateTempFileName
}{\param{const wxString\&
}{prefix
},
\param{wxFile *
}{fileTemp =
{\tt NULL
}}}
249 Returns a temporary file name starting with the given
{\it prefix
}. If
250 the
{\it prefix
} is an absolute path, the temporary file is created in this
251 directory, otherwise it is created in the default system directory for the
252 temporary files or in the current directory.
254 If the function succeeds, the temporary file is actually created. If
\rtfsp
255 {\it fileTemp
} is not
{\tt NULL
}, this file will be opened using the name of
256 the temporary file. When possible, this is done in an atomic way ensuring that
257 no race condition occurs between the temporary file name generation and opening
258 it which could often lead to security compromise on the multiuser systems.
259 If
{\it fileTemp
} is
{\tt NULL
}, the file is only created, but not opened.
261 Under Unix, the temporary file will have read and write permissions for the
262 owner only to minimize the security problems.
264 \wxheading{Parameters
}
266 \docparam{prefix
}{Prefix to use for the temporary file name construction
}
268 \docparam{fileTemp
}{The file to open or
{\tt NULL
} to just get the name
}
270 \wxheading{Return value
}
272 The full temporary file name or an empty string on error.
274 \membersection{wxFileName::DirExists
}\label{wxfilenamedirexists
}
276 \func{bool
}{DirExists
}{\void}
278 \func{bool
}{DirExists
}{\param{const wxString\&
}{dir
}}
280 Does the directory with this name exists?
282 \membersection{wxFileName::DirName
}\label{wxfilenamedirname
}
284 \func{wxFileName
}{DirName
}{\param{const wxString\&
}{dir
}}
286 \membersection{wxFileName::FileExists
}\label{wxfilenamefileexists
}
288 \func{bool
}{FileExists
}{\void}
290 \func{bool
}{FileExists
}{\param{const wxString\&
}{file
}}
292 Does the file with this name exists?
294 \membersection{wxFileName::FileName
}\label{wxfilenamefilename
}
296 \func{wxFileName
}{FileName
}{\param{const wxString\&
}{file
}}
298 static pseudo constructors
300 \membersection{wxFileName::GetCwd
}\label{wxfilenamegetcwd
}
302 \func{wxString
}{GetCwd
}{\param{const wxString\&
}{volume = ""
}}
304 Retrieve the value of the current working directory on the specified volume. If
305 the volume is empty, the programs current working directory is returned for the
308 \wxheading{Return value
}
310 The string containing the current working directory or an empty string on
315 \helpref{AssignCwd
}{wxfilenameassigncwd
}
317 \membersection{wxFileName::GetDirCount
}\label{wxfilenamegetdircount
}
319 \constfunc{size
\_t}{GetDirCount
}{\void}
322 \membersection{wxFileName::GetDirs
}\label{wxfilenamegetdirs
}
324 \constfunc{const wxArrayString\&
}{GetDirs
}{\void}
327 \membersection{wxFileName::GetExt
}\label{wxfilenamegetext
}
329 \constfunc{wxString
}{GetExt
}{\void}
332 \membersection{wxFileName::GetFormat
}\label{wxfilenamegetformat
}
334 \func{wxPathFormat
}{GetFormat
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
337 get the canonical path format for this platform
340 \membersection{wxFileName::GetFullName
}\label{wxfilenamegetfullname
}
342 \constfunc{wxString
}{GetFullName
}{\void}
345 \membersection{wxFileName::GetFullPath
}\label{wxfilenamegetfullpath
}
347 \constfunc{wxString
}{GetFullPath
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
349 add separator Construct full path with name and ext
352 \membersection{wxFileName::GetHomeDir
}\label{wxfilenamegethomedir
}
354 \func{wxString
}{GetHomeDir
}{\void}
357 \membersection{wxFileName::GetLongPath
}\label{wxfilenamegetlongpath
}
359 \constfunc{wxString
}{GetLongPath
}{\void}
361 Return the long form of the path (returns identity on non-Windows platforms)
364 \membersection{wxFileName::GetModificationTime
}\label{wxfilenamegetmodificationtime
}
366 \constfunc{wxDateTime
}{GetModificationTime
}{\void}
368 convenience wrapper: get just the last mod time of the file
371 \membersection{wxFileName::GetName
}\label{wxfilenamegetname
}
373 \constfunc{wxString
}{GetName
}{\void}
376 \membersection{wxFileName::GetPath
}\label{wxfilenamegetpath
}
378 \constfunc{wxString
}{GetPath
}{\param{bool
}{add
\_separator = FALSE
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
380 Construct path only - possibly with the trailing separator
383 \membersection{wxFileName::GetPathSeparators
}\label{wxfilenamegetpathseparators
}
385 \func{wxString
}{GetPathSeparators
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
387 get the string of path separators for this format
390 \membersection{wxFileName::GetPathWithSep
}\label{wxfilenamegetpathwithsep
}
392 \constfunc{wxString
}{GetPathWithSep
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
394 more readable synonym
397 \membersection{wxFileName::GetShortPath
}\label{wxfilenamegetshortpath
}
399 \constfunc{wxString
}{GetShortPath
}{\void}
401 Return the short form of the path (returns identity on non-Windows platforms)
404 \membersection{wxFileName::GetTimes
}\label{wxfilenamegettimes
}
406 \constfunc{bool
}{GetTimes
}{\param{wxDateTime*
}{dtAccess
},
\param{wxDateTime*
}{dtMod
},
\param{wxDateTime*
}{dtCreate
}}
408 return the last access, last modification and creation times
409 (any of the pointers may be NULL)
412 \membersection{wxFileName::GetVolume
}\label{wxfilenamegetvolume
}
414 \constfunc{wxString
}{GetVolume
}{\void}
417 \membersection{wxFileName::GetVolumeSeparator
}\label{wxfilenamegetvolumeseparator
}
419 \func{wxString
}{GetVolumeSeparator
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
421 get the string separating the volume from the path for this format
424 \membersection{wxFileName::HasExt
}\label{wxfilenamehasext
}
426 \constfunc{bool
}{HasExt
}{\void}
429 \membersection{wxFileName::HasName
}\label{wxfilenamehasname
}
431 \constfunc{bool
}{HasName
}{\void}
434 \membersection{wxFileName::HasVolume
}\label{wxfilenamehasvolume
}
436 \constfunc{bool
}{HasVolume
}{\void}
439 \membersection{wxFileName::InsertDir
}\label{wxfilenameinsertdir
}
441 \func{void
}{InsertDir
}{\param{int
}{before
},
\param{const wxString\&
}{dir
}}
444 \membersection{wxFileName::IsAbsolute
}\label{wxfilenameisabsolute
}
446 \func{bool
}{IsAbsolute
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
448 is this filename absolute?
451 \membersection{wxFileName::IsCaseSensitive
}\label{wxfilenameiscasesensitive
}
453 \func{bool
}{IsCaseSensitive
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
456 are the file names of this type cases sensitive?
459 \membersection{wxFileName::IsOk
}\label{wxfilenameisok
}
461 \constfunc{bool
}{IsOk
}{\void}
463 Returns
{\tt TRUE
} if the filename is valid,
{\tt FALSE
} if it is not
464 initialized yet. The assignment functions and
465 \helpref{Clear
}{wxfilenameclear
} may reset the object to the uninitialized,
466 invalid state (the former only do it on failure).
468 \membersection{wxFileName::IsPathSeparator
}\label{wxfilenameispathseparator
}
470 \func{bool
}{IsPathSeparator
}{\param{wxChar
}{ch
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
472 Returns
{\tt TRUE
} if the char is a path separator for this format.
474 \membersection{wxFileName::IsRelative
}\label{wxfilenameisrelative
}
476 \func{bool
}{IsRelative
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
478 Returns
{\tt TRUE
} if this filename is not absolute.
480 \membersection{wxFileName::IsWild
}\label{wxfilenameiswild
}
482 \func{bool
}{IsWild
}{\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
484 FIXME: what exactly does this do?
486 \membersection{wxFileName::MakeRelativeTo
}\label{wxfilenamemakerelativeto
}
488 \func{bool
}{MakeRelativeTo
}{\param{const wxString\&
}{pathBase = ""
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
490 This function tries to put this file name in a form relative to
{\it pathBase
}.
491 In other words, it returns the file name which should be used to access this
492 file if the current directory were
{\it pathBase
}.
494 \docparam{pathBase
}{the directory to use as root, current directory is used by
497 \docparam{format
}{the file name format, native by default
}
499 \wxheading{Return value
}
501 {\tt TRUE
} if the file name has been changed,
{\tt FALSE
} if we failed to do
502 anything with it (currently this only happens if the file name is on a volume
503 different from the volume specified by
{\it pathBase
}).
507 \helpref{Normalize
}{wxfilenamenormalize
}
509 \membersection{wxFileName::Mkdir
}\label{wxfilenamemkdir
}
511 \func{bool
}{Mkdir
}{\param{int
}{perm =
0777},
\param{bool
}{full = FALSE
}}
513 \func{static bool
}{Mkdir
}{\param{const wxString\&
}{dir
},
\param{int
}{perm =
0777},
\param{bool
}{full = FALSE
}}
515 \docparam{dir
}{the directory to create
}
517 \docparam{parm
}{the permissions for the newly created directory
}
519 \docparam{full
}{if
{\tt TRUE
}, will try to make each directory in the path
}
521 \wxheading{Return value
}
523 Returns
{\tt TRUE
} if the directory was successfully created,
{\tt FALSE
}
526 \membersection{wxFileName::Normalize
}\label{wxfilenamenormalize
}
528 \func{bool
}{Normalize
}{\param{int
}{flags = wxPATH
\_NORM\_ALL},
\param{const wxString\&
}{cwd = wxEmptyString
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
530 operations on the path
531 normalize the path: with the default flags value, the path will be
532 made absolute, without any ".." and "." and all environment
533 variables will be expanded in it
534 this may be done using another (than current) value of cwd
537 \membersection{wxFileName::PrependDir
}\label{wxfilenameprependdir
}
539 \func{void
}{PrependDir
}{\param{const wxString\&
}{dir
}}
542 \membersection{wxFileName::RemoveDir
}\label{wxfilenameremovedir
}
544 \func{void
}{RemoveDir
}{\param{int
}{pos
}}
547 \membersection{wxFileName::Rmdir
}\label{wxfilenamermdir
}
549 \func{bool
}{Rmdir
}{\void}
551 \func{static bool
}{Rmdir
}{\param{const wxString\&
}{dir
}}
553 Deletes the specified directory.
556 \membersection{wxFileName::SameAs
}\label{wxfilenamesameas
}
558 \func{bool
}{SameAs
}{\param{const wxFileName\&
}{filepath
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
560 Compares the filename using the rules of this platform
563 \membersection{wxFileName::SetCwd
}\label{wxfilenamesetcwd
}
565 \func{bool
}{SetCwd
}{\void}
567 \func{static bool
}{SetCwd
}{\param{const wxString\&
}{cwd
}}
569 change the current working directory
571 \membersection{wxFileName::SetExt
}\label{wxfilenamesetext
}
573 \func{void
}{SetExt
}{\param{const wxString\&
}{ext
}}
576 \membersection{wxFileName::SetFullName
}\label{wxfilenamesetfullname
}
578 \func{void
}{SetFullName
}{\param{const wxString\&
}{fullname
}}
580 full name is the file name + extension (but without the path)
583 \membersection{wxFileName::SetName
}\label{wxfilenamesetname
}
585 \func{void
}{SetName
}{\param{const wxString\&
}{name
}}
588 \membersection{wxFileName::SetTimes
}\label{wxfilenamesettimes
}
590 \func{bool
}{SetTimes
}{\param{const wxDateTime*
}{dtAccess
},
\param{const wxDateTime*
}{dtMod
},
\param{const wxDateTime*
}{dtCreate
}}
592 set the file creation and last access/mod times
593 (any of the pointers may be NULL)
596 \membersection{wxFileName::SetVolume
}\label{wxfilenamesetvolume
}
598 \func{void
}{SetVolume
}{\param{const wxString\&
}{volume
}}
601 \membersection{wxFileName::SplitPath
}\label{wxfilenamesplitpath
}
603 \func{void
}{SplitPath
}{\param{const wxString\&
}{fullpath
},
\param{wxString*
}{volume
},
\param{wxString*
}{path
},
\param{wxString*
}{name
},
\param{wxString*
}{ext
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
605 \func{void
}{SplitPath
}{\param{const wxString\&
}{fullpath
},
\param{wxString*
}{path
},
\param{wxString*
}{name
},
\param{wxString*
}{ext
},
\param{wxPathFormat
}{format = wxPATH
\_NATIVE}}
607 split a fullpath into the volume, path, (base) name and extension
608 (all of the pointers can be NULL)
610 \membersection{wxFileName::Touch
}\label{wxfilenametouch
}
612 \func{bool
}{Touch
}{\void}
614 set the access and modification times to the current moment
617 \membersection{wxFileName::operator=
}\label{wxfilenameoperatorassign
}
619 \func{wxFileName\& operator
}{operator=
}{\param{const wxFileName\&
}{filename
}}
621 \func{wxFileName\& operator
}{operator=
}{\param{const wxString\&
}{filename
}}
623 Assigns the new value to this filename object.
625 \membersection{wxFileName::operator==
}\label{wxfilenameoperatorequal
}
627 \func{bool operator
}{operator==
}{\param{const wxFileName\&
}{filename
}}
629 \func{bool operator
}{operator==
}{\param{const wxString\&
}{filename
}}
631 Returns
{\tt TRUE
} if the filenames are equal for the native file format.