It's not a secret anymore!*
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
Author

Recognising Folders

jyotsna srikanth
Greenhorn

Joined: Sep 25, 2007
Posts: 12
Hi,
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
Rancher

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


Joanne
 
 
subject: Recognising Folders