• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Complete Directory / Files in Parent Directory  RSS feed

 
Ra Sank
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

I am trying to wrote a sample program which lists all the files in a particular directory.

I am using File.listFiles() which shows all the files in the current directory and not the files / directories in the subdirectories.
Is we have any specific method for getting these details or we have to make a loop and do each and every directories.

Thanks in Advance.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ra Sank:
we have to make a loop and do each and every directories.


Correct.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!