adding alias support for directories
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,6 +115,8 @@ bool wxDirData::Read(wxString *filename)
|
|||||||
err = wxMacPathToFSRef( m_dirname , &dirRef ) ;
|
err = wxMacPathToFSRef( m_dirname , &dirRef ) ;
|
||||||
if ( err == noErr )
|
if ( err == noErr )
|
||||||
{
|
{
|
||||||
|
Boolean isFolder, wasAliased;
|
||||||
|
FSResolveAliasFile( &dirRef, TRUE, &isFolder, &wasAliased );
|
||||||
err = FSOpenIterator(&dirRef, kFSIterateFlat, &m_iterator);
|
err = FSOpenIterator(&dirRef, kFSIterateFlat, &m_iterator);
|
||||||
}
|
}
|
||||||
if ( err )
|
if ( err )
|
||||||
@@ -155,6 +157,13 @@ bool wxDirData::Read(wxString *filename)
|
|||||||
if ( ( name[0U] == '.' ) && !(m_flags & wxDIR_HIDDEN ) )
|
if ( ( name[0U] == '.' ) && !(m_flags & wxDIR_HIDDEN ) )
|
||||||
continue ;
|
continue ;
|
||||||
|
|
||||||
|
Boolean isFolder, wasAliased;
|
||||||
|
FSResolveAliasFile( &fileRef, TRUE, &isFolder, &wasAliased );
|
||||||
|
if ( wasAliased )
|
||||||
|
{
|
||||||
|
FSGetCatalogInfo( &fileRef, kFSCatInfoNodeFlags | kFSCatInfoFinderInfo, &catalogInfo, NULL, NULL, NULL );
|
||||||
|
}
|
||||||
|
|
||||||
if ( (((FileInfo*)&catalogInfo.finderInfo)->finderFlags & kIsInvisible ) && !(m_flags & wxDIR_HIDDEN ) )
|
if ( (((FileInfo*)&catalogInfo.finderInfo)->finderFlags & kIsInvisible ) && !(m_flags & wxDIR_HIDDEN ) )
|
||||||
continue ;
|
continue ;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user