{
LoadedDriver *pDriver = apDriverList[i];
- if( pDriver->m_sType == "mountpoints" )
- continue;
-
- const CString p = pDriver->GetPath(sPath);
+ FileType type = pDriver->m_pDriver->GetFileType(sPath);
- if( p.empty() )
+ if( type != TYPE_DIR )
continue;
- sResolvedPath = pDriver->m_sRoot + p;
+ sResolvedPath = pDriver->m_sRoot + sPath;
- LOG->Debug( "p: %s, pDriver->m_sRoot: %s, sResolvedPath: %s",
- p.c_str(), pDriver->m_sRoot.c_str(), sResolvedPath.c_str() );
+ LOG->Debug( "sPath: %s, pDriver->m_sRoot: %s, sResolvedPath: %s",
+ sPath.c_str(), pDriver->m_sRoot.c_str(), sResolvedPath.c_str() );
break;
}