Fix wxPATH_RMDIR_FULL documentation

Explain what this flag really does in Rmdir() documentation itself, as
the old wording was confusing.

Closes #16682.
This commit is contained in:
Vadim Zeitlin
2021-09-13 21:05:21 +01:00
parent 8db2f45171
commit 8d13440d69

View File

@@ -1225,9 +1225,12 @@ public:
Deletes the specified directory from the file system. Deletes the specified directory from the file system.
@param flags @param flags
Can contain one of wxPATH_RMDIR_FULL or wxPATH_RMDIR_RECURSIVE. By With default value, the directory is removed only if it is empty.
default contains neither so the directory will not be removed If wxPATH_RMDIR_FULL is specified, it is removed even if it
unless it is empty. contains subdirectories, provided that there are no files in
neither this directory nor its subdirectories. If flags contains
wxPATH_RMDIR_RECURSIVE, then the directory is removed with all the
files and directories under it.
@return Returns @true if the directory was successfully deleted, @false @return Returns @true if the directory was successfully deleted, @false
otherwise. otherwise.
@@ -1240,9 +1243,12 @@ public:
@param dir @param dir
The directory to delete The directory to delete
@param flags @param flags
Can contain one of wxPATH_RMDIR_FULL or wxPATH_RMDIR_RECURSIVE. By With default value, the directory is removed only if it is empty.
default contains neither so the directory will not be removed If wxPATH_RMDIR_FULL is specified, it is removed even if it
unless it is empty. contains subdirectories, provided that there are no files in
neither this directory nor its subdirectories. If flags contains
wxPATH_RMDIR_RECURSIVE, then the directory is removed with all the
files and directories under it.
@return Returns @true if the directory was successfully deleted, @false @return Returns @true if the directory was successfully deleted, @false
otherwise. otherwise.