Include freemind directory in zip archive

Anonymous
2012-06-24
2013-04-11

  • Anonymous
    2012-06-24

    Hi,

    it would be great if the freemind-bin-max-1.0.0_Beta_5.zip archive contained the parent directory with freemind (freemind-1.0.0_Beta_5).
    Currently all files are extracted into current directory.
    Of course one can use something like unzip freemind-bin-max-1.0.0_Beta_5.zip -d freemind-1.0.0_Beta_5, but sometimes I forget and have to find all files in the current directory belonging to freemind, create freemind directory and move them there.

    Jiří Pejchal

     
  • LogicDaemon
    LogicDaemon
    2012-06-24

    I discommend this.
    Because I am using VFSs, and always unpack archives to corresponding subdirectory.
    So this will make me go two redundant directories deep.

    Also, Windows unzip to subdirectory by default.

    In linux, you can use

    7z x \*.7z -o\*
    

    or any archive name instead of "\*.7z". This will save you from typing output dir name.

    (you'll need p7zip for this)

     
  • LogicDaemon
    LogicDaemon
    2012-06-24

    I mean literally, you can unpack with command

    7z x freemind-bin-max-1.0.0_Beta_5.zip -o\*
    

    and it will create dir "freemind-bin-max-1.0.0_Beta_5" for you.

    Screening of * is required because shell will otherwise expand it on its own (which isn't what you want).