Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Traverse folders and files using XCode
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Srinivas" data-source="post: 1061499" data-attributes="member: 160337"><p>Hi </p><p></p><p>I am a newbie in Mac and XCode development</p><p></p><p>I have an urgent requirement where i need to traverse the files and folders in the specified path given</p><p></p><p>Ex: </p><p></p><p>I have a folder "Temp" under /Users/</p><p></p><p>which should look similar to this /Users/Temp/</p><p></p><p>Under the Temp folder i have "Additional" another folder</p><p></p><p>which should look similar to this /Users/Temp/Additional/</p><p></p><p>Under the Additional folder i have 5 files (assume)</p><p>which might me something similar to this</p><p></p><p>/Users/Temp/Additional/Temp1.txt</p><p>/Users/Temp/Additional/Temp2.txt</p><p>/Users/Temp/Additional/Temp3.txt</p><p>/Users/Temp/Additional/Temp4.txt</p><p>/Users/Temp/Additional/Temp5.txt</p><p></p><p>If the input folder is set as /Users/Temp/</p><p></p><p>I should get the list of folders like Additional and the files under it</p><p></p><p>Any help would be great</p><p></p><p>Thanks</p><p>Sri</p></blockquote><p></p>
[QUOTE="Srinivas, post: 1061499, member: 160337"] Hi 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 Ex: 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 /Users/Temp/Additional/Temp1.txt /Users/Temp/Additional/Temp2.txt /Users/Temp/Additional/Temp3.txt /Users/Temp/Additional/Temp4.txt /Users/Temp/Additional/Temp5.txt 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 Thanks Sri [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Traverse folders and files using XCode
Top