getting only folder from system
getting only folder from system
- Subject: getting only folder from system
- From: 김경옥 <email@hidden>
- Date: Mon, 26 Apr 2004 10:40:18 +0900
hi,
a part of code below is to get names of all folders under the
'rootDir',
but the result in 'FolderNames,dirRef,and spec' shows not only folders
but also files.
Is there any way to get only folder name or to select folder among the
above results ?
Thanks.
/////////////////////////////////////////////////
FSRef rootDir;
ItemCount returnedFolders;
FSVolumeRefNum volumeRefNum;
FSIterator iterator;
Boolean containerChanged;
HFSUniStr255 FolderNames[255];
FSCatalogInfo cataInfo[255];
FSSpec spec[255];
FSRef dirRef[255];
err = FSOpenIterator(&rootDir,kFSIterateFlat,&iterator); //root Dir
of volume
err =
FSGetCatalogInfoBulk(iterator,100,&returnedFolders,containerChanged,kFSC
atInfoGettableInfo,cataInfo,dirRef,spec,FolderNames);
/////////////////////////////////////////////////
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.