File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes How to create directory and subdirectory with files. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "How to create directory and subdirectory with files." Watch "How to create directory and subdirectory with files." New topic
Author

How to create directory and subdirectory with files.

din dee
Greenhorn

Joined: Aug 11, 2004
Posts: 9
any body give me suggestions

I have copy one directory(it has contains files & subfolder and sub folder has files and subfolder)
ex: d:\source
it contains one,two 2 folders,readme.txt 1 files
d:\source\one
d:\source\two
d:source\readme.txt.
one folder contains sample.txt
d:\source\one\sample.txt and
two folder,contains two files and sub folder (three). d:\source\two\sample1.txt
d:\source\two\sample2.txt
d:\source\two\three
Three sub folder,contains one gif files
d:\source\two\three\samples.gif

I need these folder sturcture and store like e:\target\source
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

You can create directories using java.io.File.
The Java Developers Almanac has a good example of copying a file.


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create directory and subdirectory with files.