wxPATH_NORM_TILDE = 0x0004, // Unix only: replace ~ and ~user
wxPATH_NORM_CASE = 0x0008, // if case insensitive => tolower
wxPATH_NORM_ABSOLUTE = 0x0010, // make the path absolute
- wxPATH_NORM_ALL = 0x001f
+ wxPATH_NORM_LONG = 0x0020, // make the path the long form
+ wxPATH_NORM_ALL = 0x003f
};
// ----------------------------------------------------------------------------
// get a temp file name starting with thespecified prefix
void AssignTempFileName( const wxString &prefix );
- // directory creation and removal
- bool Mkdir( int perm = 0777 );
- static bool Mkdir( const wxString &dir, int perm = 0777 );
+ // directory creation and removal.
+ // if full is TRUE, will try to make each directory in the path.
+ bool Mkdir( int perm = 0777, bool full = FALSE);
+ static bool Mkdir( const wxString &dir, int perm = 0777, bool full = FALSE );
bool Rmdir();
static bool Rmdir( const wxString &dir );
wxString GetName() const { return m_name; }
bool HasName() const { return !m_name.IsEmpty(); }
+ // full name is the file name + extension (but without the path)
+ void SetFullName(const wxString& fullname);
wxString GetFullName() const;
const wxArrayString &GetDirs() const { return m_dirs; }
// Construct path only - possibly with the trailing separator
- wxString GetPath( bool add_separator = FALSE, wxPathFormat format = wxPATH_NATIVE ) const;
+ wxString GetPath( bool add_separator = FALSE,
+ wxPathFormat format = wxPATH_NATIVE ) const;
// more readable synonym
wxString GetPathWithSep(wxPathFormat format = wxPATH_NATIVE ) const
// Construct full path with name and ext
wxString GetFullPath( wxPathFormat format = wxPATH_NATIVE ) const;
+ // Return the short form of the path (returns identity on non-Windows platforms)
+ wxString GetShortPath() const;
+
+ // Return the long form of the path (returns identity on non-Windows platforms)
+ wxString GetLongPath() const;
+
// various helpers
// get the canonical path format for this platform