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:
@@ -274,12 +274,18 @@ wxFSFile* wxLocalFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString&
|
|||||||
wxString wxLocalFSHandler::FindFirst(const wxString& spec, int flags)
|
wxString wxLocalFSHandler::FindFirst(const wxString& spec, int flags)
|
||||||
{
|
{
|
||||||
wxFileName fn = wxFileSystem::URLToFileName(GetRightLocation(spec));
|
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()
|
wxString wxLocalFSHandler::FindNext()
|
||||||
{
|
{
|
||||||
return wxFindNextFile();
|
const wxString found = wxFindNextFile();
|
||||||
|
if ( found.empty() )
|
||||||
|
return found;
|
||||||
|
return wxFileSystem::FileNameToURL(found);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user