traverse through a directry recursively

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nabanita
    New Member
    • Mar 2010
    • 9

    traverse through a directry recursively

    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(executabl e)
    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
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    the manual entry (and its comments) of readdir() should get you further.

    Comment

    Working...