rename « Zip « Java I/O Q&A

Home
Java I/O Q&A
1.API
2.batch File
3.binary File
4.class file
5.CSV file
6.deploy
7.Development
8.directory
9.error
10.Excel File
11.File Attribute
12.jar
13.Log
14.Media File
15.nio
16.Operation
17.PDF file
18.PropertyFile
19.serialize
20.text file
21.Windows
22.XML file
23.Zip
Java I/O Q&A » Zip » rename 

1. Renaming a File/Folder inside a Zip File in Java?    stackoverflow.com

I have a zip file containing a folder structure like

  • main-folder/
    • subFolder1/
    • subFolder2/
    • subFolder3/
      • file3.1
      • file3.2
I would like to rename folder main-folder to let's say versionXY inside that very zip file using Java. Is there a simpler way ...

2. Using ant, rename a directory without knowing the full path?    stackoverflow.com

Given a zipfile with an unknown directory, how can I rename or move that directory to a normalized path?

<!-- Going to fetch some stuff -->
<target name="get.remote">

    <!-- Get ...

3. How rename a file in a zip archive with Ant?    stackoverflow.com

All is in the title. Just to be complete, I just want to rename the file without modifying it. Manu

4. How can I rename a ZIP File??    forums.oracle.com

Sounds to me like you need to delete "newUsers.zip" before renaming "newUsersTEMP.zip" to "newUsers.zip". Note - rename does not work across file volumes i.e. it does not move a file from one volume to another. If you need to do this then you need to 1) Create the new file 2) Copy the new file over the old file. 3) Delete ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.