X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d38315df30415b030d93172123920d69c5c5e3b6..6f41c10973643552837c6bd38b23779e65a2eaa3:/include/wx/dir.h diff --git a/include/wx/dir.h b/include/wx/dir.h index 980e5f2138..0781b13c13 100644 --- a/include/wx/dir.h +++ b/include/wx/dir.h @@ -14,6 +14,7 @@ #include "wx/longlong.h" #include "wx/string.h" +#include "wx/filefn.h" // for wxS_DIR_DEFAULT class WXDLLIMPEXP_FWD_BASE wxArrayString; @@ -104,7 +105,11 @@ public: // get the full name of the directory (without '/' at the end) wxString GetName() const; - + + // Same as GetName() but does include the trailing separator, unless the + // string is empty (only for invalid directories). + wxString GetNameWithSep() const; + // file enumeration routines // ------------------------- @@ -154,7 +159,7 @@ public: // static utilities for directory management // (alias to wxFileName's functions for dirs) // ----------------------------------------- - + // test for existence of a directory with the given name static bool Exists(const wxString& dir); @@ -162,7 +167,7 @@ public: int flags = 0); static bool Remove(const wxString &dir, int flags = 0); - + private: friend class wxDirData;