- Returns the name of the directory itself. The returned string does not
- have the trailing path separator (slash or backslash).
+ Returns the name of the directory itself.
+
+ The returned string does not have the trailing path separator (slash or
+ backslash).
+
+ Notice that in spite of this the last character of the returned string
+ can still be the path separator if this directory is the root one.
+ Because of this, don't append ::wxFILE_SEP_PATH to the returned value
+ if you do need a slash-terminated directory name but use
+ GetNameWithSep() instead to avoid having duplicate consecutive slashes.