• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create directory and subdirectory with files.

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic