Results 1 to 2 of 2
  1. #1

    Member Since
    Jun 03, 2010
    Traverse folders and files using XCode

    I am a newbie in Mac and XCode development

    I have an urgent requirement where i need to traverse the files and folders in the specified path given


    I have a folder "Temp" under /Users/

    which should look similar to this /Users/Temp/

    Under the Temp folder i have "Additional" another folder

    which should look similar to this /Users/Temp/Additional/

    Under the Additional folder i have 5 files (assume)
    which might me something similar to this


    If the input folder is set as /Users/Temp/

    I should get the list of folders like Additional and the files under it

    Any help would be great


  2. #2

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    You want to look at NSFileManager and I think the enumeratorAtPath: method.
    CameraTime - Time lapse photography for novice and advanced users.

    When asking questions, post the version of your software. You'll receive better answers.

    Please post your results to the thread as it is good feedback.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 'find' nogroup/nouser doesn't traverse directories?
    By jnojr in forum macOS - Operating System
    Replies: 0
    Last Post: 10-29-2012, 05:01 PM
  2. MAC VPN doesn't traverse Class B network...need help
    By Jbc in forum Internet, Networking, and Wireless
    Replies: 4
    Last Post: 11-21-2011, 07:42 AM
  3. Replies: 1
    Last Post: 08-22-2011, 02:17 AM
  4. Xcode linking files
    By Antonious in forum macOS - Development and Darwin
    Replies: 0
    Last Post: 01-15-2011, 01:38 AM
  5. xcode generates .h .m files in chinese
    By bobdotcom in forum macOS - Development and Darwin
    Replies: 1
    Last Post: 08-14-2010, 09:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts