• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
getting only folder from system
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: getting only folder from system
      • From: Chris Espinosa <email@hidden>
References: 
 >Re: Resource forks (From: Chris Espinosa <email@hidden>)

  • Prev by Date: XCode 1.2 & Redo
  • Next by Date: Re: Resource forks
  • Previous by thread: Re: Resource forks
  • Next by thread: Re: getting only folder from system
  • Index(es):
    • Date
    • Thread