Results 1 to 7 of 7
Thread: List of files and directories.
- 01-01-2010, 01:19 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 41
- Rep Power
- 0
-
- 01-01-2010, 01:56 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
listFiles() give you all the files and folders in a particular folder. You have to filter files, isDirectory() is the way. Please read File API for more details.
- 01-01-2010, 07:16 PM #4
Member
- Join Date
- Dec 2009
- Posts
- 41
- Rep Power
- 0
Eranga, Thanks
- 01-02-2010, 03:13 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
You are welcome. :)
If you've solve the problem, please mark the thread solved.
- 01-02-2010, 11:48 AM #6
Member
- Join Date
- Dec 2009
- Posts
- 41
- Rep Power
- 0
If you've solve the problem, please mark the thread solved.
Eranga, how I can do it?
- 01-02-2010, 04:06 PM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
On top of the first post in this thread, you can see a menu. Click on Thread Tools, can you can see an option to mark the thread solved.
Similar Threads
-
how to get the list of war files
By vijayabaskar in forum Java ServletReplies: 0Last Post: 04-03-2009, 08:39 AM -
how to list certain files in a given directory in java
By corpusluteum in forum New To JavaReplies: 6Last Post: 09-24-2008, 12:19 AM -
List all the files in the current jar
By Srikanth_From_Moon in forum New To JavaReplies: 0Last Post: 06-14-2008, 08:42 AM -
JSP – getting list of directories
By Java Tip in forum Java TipReplies: 0Last Post: 01-31-2008, 12:51 PM -
How can I get list of files in a directory
By karma in forum New To JavaReplies: 2Last Post: 12-14-2007, 11:20 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks