This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Access files in folders and sub-folders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Access files in folders and sub-folders" Watch "Access files in folders and sub-folders" New topic
Author

Access files in folders and sub-folders

Mutua Kakinyi
Greenhorn

Joined: Apr 21, 2011
Posts: 7
I am trying to write a midlet code that lists all files in a folder and its sub-folders, if available, of a given parent folder, say root1. I imagine I need a code that does a recursive traversal of folders and sub-folders. Can some share with me a hint (some codes maybe) on how to start.

Thank you in advance.

Mutua
prtk bhardwaj
Greenhorn

Joined: Jun 14, 2011
Posts: 3
hiii
use browse folder menu of netbeans ide
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

the book im reading right now has an example of doing just that. give me a minute and ill look it up. like you are waiting for me hehe.


as you can see it is indeed recursive.


SCJP
Visit my download page
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Access files in folders and sub-folders
 
Similar Threads
Sending Folder over socket
how can compile whole package in one time
Using FilenameFilter
How to get hte size of the folder[urgent]
Rampart in axis2