X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..0b9d8fe18e02e9d848d205c3f36812cd56fc1bcd:/wxPython/src/filesys.i diff --git a/wxPython/src/filesys.i b/wxPython/src/filesys.i index 69d782e325..2367cb82ce 100644 --- a/wxPython/src/filesys.i +++ b/wxPython/src/filesys.i @@ -141,13 +141,23 @@ public: static void AddHandler(wxFileSystemHandler *handler); static void CleanUpHandlers(); -// // Returns the native path for a file URL -// static wxFileName URLToFileName(const wxString& url); + // Returns the file URL for a native path + static wxString FileNameToURL(const wxString& filename); -// // Returns the file URL for a native path -// static wxString FileNameToURL(const wxFileName& filename); + // Returns the native path for a file URL + //static wxFileName URLToFileName(const wxString& url); *** See below }; + +// Returns the native path for a file URL +wxString wxFileSystem_URLToFileName(const wxString& url); +%{ + wxString wxFileSystem_URLToFileName(const wxString& url) { + wxFileName fname = wxFileSystem::URLToFileName(url); + return fname.GetFullPath(); + } +%} + //--------------------------------------------------------------------------- class wxInternetFSHandler : public wxFileSystemHandler {