Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: retaining permissions in a zip file

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Thanked 0 Times in 0 Posts

    Default retaining permissions in a zip file

    Hi All,

    I am trying to do unzip of a file from my java code. When I try to do this, and compare the files that are unzipped programmatically and files which are unzipped manually, I am seeing permissions are all different. Is there a way I can retain the permissions of the files as it is there in the zip file?

    This is the code that I am using for doing the unzip - Unzipping Files with java.util.zip.ZipFile

    Please help me.


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Tavistock, UK
    Thanked 103 Times in 93 Posts

    Default Re: retaining permissions in a zip file

    java zip file permissions - Google Search
    java - Maintain file permissions when extracting from a zip file using JDK 5 api - Stack Overflow

Similar Threads

  1. File Permissions?
    By bgroenks96 in forum Java Theory & Questions
    Replies: 8
    Last Post: July 9th, 2011, 01:02 PM
  2. Replies: 10
    Last Post: January 12th, 2011, 05:48 AM
  3. Permissions?
    By Vindicator in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 16th, 2010, 05:14 PM
  4. Replies: 8
    Last Post: January 6th, 2010, 09:59 AM