*
The moose likes Beginning Java and the fly likes Creating Sub-directories Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Creating Sub-directories" Watch "Creating Sub-directories" New topic
Author

Creating Sub-directories

Stuart Butler
Greenhorn

Joined: Jan 31, 2002
Posts: 2
Can someone please tell me how to create new directories using Java or atleast point me in the right direction.
Thanks
Stuart
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
I'd consult the API's. Possibly the File class in the java.io package. More specifically I'd look at the mkdir() method.


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Stuart Butler
Greenhorn

Joined: Jan 31, 2002
Posts: 2
Doh! who'd have thought they would name it after the UNIX command. I was looking for a Create...() method.
Thanks
Stuart.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Creating Sub-directories
 
Similar Threads
Files
Need Help in understanding the Class Loader
Get file sharing.
Is it possible to delete all files and folders in a drive non-recursively?
Servlet information