working with file

Joined
Apr 9, 2014
Messages
15
Reaction score
0
Points
1
suppose a folder contains some folder, and again each folder contain some folder and each folder contain some file. I want to display absolute path name of each and every file contains in every directory and subdirectory . How to do it using objective-c???????, please any one reply!! also tell me what api or method of objective-c to use
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Moved to the development forum. Please keep this in mind for the future.

I'm not sure that you need an API here. Indeed, recursion is your best friend here. Modify this and recurse over it if you run into folders along the way.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top