my dog learned polymorphism
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
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!