return URLs, not filenames, from wxFileSystem::FindFirst/FindNext() for the file: protocol
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2bb9a404fb
commit
8e63b7b8ea
@ -274,12 +274,18 @@ wxFSFile* wxLocalFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString&
|
||||
wxString wxLocalFSHandler::FindFirst(const wxString& spec, int flags)
|
||||
{
|
||||
wxFileName fn = wxFileSystem::URLToFileName(GetRightLocation(spec));
|
||||
return wxFindFirstFile(ms_root + fn.GetFullPath(), flags);
|
||||
const wxString found = wxFindFirstFile(ms_root + fn.GetFullPath(), flags);
|
||||
if ( found.empty() )
|
||||
return found;
|
||||
return wxFileSystem::FileNameToURL(found);
|
||||
}
|
||||
|
||||
wxString wxLocalFSHandler::FindNext()
|
||||
{
|
||||
return wxFindNextFile();
|
||||
const wxString found = wxFindNextFile();
|
||||
if ( found.empty() )
|
||||
return found;
|
||||
return wxFileSystem::FileNameToURL(found);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user