File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Chapter 6 - page 456 - search.list() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Chapter 6 - page 456 - search.list()" Watch "Chapter 6 - page 456 - search.list()" New topic
Author

Chapter 6 - page 456 - search.list()

fadi aboona
Ranch Hand

Joined: Apr 25, 2010
Posts: 71
Hi all,
The following code:



The following output:


why it wouldn't show subSubDir directory?
i hope the answer is not something silly i overlooked!!
Thank you.
Shaikh Ali
Ranch Hand

Joined: Jan 26, 2011
Posts: 51
I believe search.list() only returns the contents of newDir only, not its subfolders. You can write an elegant recursive function to achieve what you want
fadi aboona
Ranch Hand

Joined: Apr 25, 2010
Posts: 71
Faraz Kadri wrote:I believe search.list() only returns the contents of newDir only, not its subfolders. You can write an elegant recursive function to achieve what you want


Thank you,
but in this case i have to create a file for each directory? maybe i'm thinking ahead of myself here! i think this is achievable with collections!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Chapter 6 - page 456 - search.list()