• Post Reply Bookmark Topic Watch Topic
  • New Topic

Directory structure in ZIP File

 
Pradeep Kadambar
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a program to ZIP a collection of files passed to it. But the problem is that the Drive Letter is also included in the ZIP file.


Ex: Files "D:\\doc\\JAVA.doc","d:\\doc\\HA.doc"
The structure will be D: --> doc --> JAVA.doc


What I want is doc --> JAVA.doc

Please guide me on this.
 
Elihu Smails
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you set it based on what you pass to the ZipFile constructor?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!