File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create directory and subdirectory with files.

 
din dee
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create directories using java.io.File.
The Java Developers Almanac has a good example of copying a file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic