By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,044 Members | 1,192 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,044 IT Pros & Developers. It's quick & easy.

traverse through a directry recursively

P: 9
actually I need to traverse thrugh a directory and find out all the folders and again traverse through those folders and subfolders in that folder to find out all files(executable)
I have used the scandir function to traverse through a directory but it does only read the folders in it and I also tried reading those file-folders to get the name of other files usinf fopen but that does not work!
I will be highly obliged, if u could help me out in solving the same
Mar 15 '10 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
the manual entry (and its comments) of readdir() should get you further.
Mar 15 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.