File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Recognising Folders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Recognising Folders " Watch "Recognising Folders " New topic

Recognising Folders

jyotsna srikanth

Joined: Sep 25, 2007
Posts: 12
I need help to how to recognise those folders present in particular location say in windows file system(may be c:,d:,f ,with there names present in particular drive using java code.
Joanne Neal

Joined: Aug 05, 2005
Posts: 3742
Create a File object and call its isDirectory() method.

I agree. Here's the link:
subject: Recognising Folders
It's not a secret anymore!