git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59510
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString wxLocalFSHandler::FindFirst(const wxString& spec, int flags)
{
wxFileName fn = wxFileSystem::URLToFileName(GetRightLocation(spec));
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()
{
}
wxString wxLocalFSHandler::FindNext()
{
- return wxFindNextFile();
+ const wxString found = wxFindNextFile();
+ if ( found.empty() )
+ return found;
+ return wxFileSystem::FileNameToURL(found);