Results 1 to 3 of 3
  1. #1

    Member Since
    Dec 01, 2009
    Unzipping in Mac C++
    Hi again. I have a cross platform application, where i'm unzipping a zip folder.

    in the folder i have a Inside there is another file xxx, which has no extension. originally, it should be a linux executble. but after i unzip the file through my program using a opensource sdk, it extracts as a plain text file (because there is no extention) and the app cannot be run already!.

    Do you know any way around this ?

    I also tried extracting using 'unzip' in the terminal, and i get the same problem.. the only method that works is extracting with the "Archive Utility" but i need to be able to extract the folder programmatically in c++..

  2. #2

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    Perhaps the Zip format has bits to notify the extracting program what permissions need to be applied to each extracted file. You'll need to look into Zip structure. Admittedlly I would have then expected unzip to figure that out.

    Maybe 'Archive Utility' is taking liberties by analyzing the extraction when it is a .app container folder. This would seem risky to me.
    CameraTime - Time lapse photography for novice and advanced users.

    When asking questions, post the version of your software. You'll receive better answers.

    Please post your results to the thread as it is good feedback.

  3. #3

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Tucson, AZ
    Way... way too many specs to list.
    whether something is executable in linux is a matter of perms, not extensions (same thing in OS X to be honest)
    This machine kills fascists
    Got # ? phear the command line!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How would you stop Mac from automatically unzipping files?
    By NewsAndHistory in forum macOS - Apps and Games
    Replies: 12
    Last Post: 02-26-2012, 01:41 PM
  2. Unzipping
    By golferstan in forum Switcher Hangout
    Replies: 5
    Last Post: 06-24-2011, 08:35 PM
  3. Unzipping issues
    By MHMaddo in forum Apple Notebooks
    Replies: 0
    Last Post: 02-11-2010, 06:51 PM
  4. stop unzipping!
    By RazzLee in forum macOS - Apps and Games
    Replies: 3
    Last Post: 05-04-2009, 10:52 AM
  5. Unzipping...
    By eschur21 in forum Switcher Hangout
    Replies: 5
    Last Post: 03-15-2008, 03:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts