Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
src
 
 
 
 
 
 

Readme.md

PeaZip with force single directory level extract

This version of PeaZip allows you to right click on any archive → PeaZip → "Extract here (new folder)" and be sure that only one subdirectory will be created, with the archive's content contained inside it.

Original extract behaviour:

Original extract behaviour

Uniform subdirectory extract:

Uniform extract behaviour

This is useful because there are two main ways that archives are packaged:

  1. Archive root contains all files
  2. Archive root contains single directory (named after the archive), with all files contained inside.

The second type of archive results in an intermediate directory being created when using "Extract here (new folder)".

E.g. With C:\PeaZip as the current directory.

ArchiveType1.zip contains:

File1.txt

Then "Extract here (new folder)" will result in the following structure:

C:\
└ PeaZip\
  ├ ArchiveType1\
  │ └ File1.txt
  └  Archive.zip

ArchiveType2.zip contains:

ArchiveType2\
└ File1.txt

Then "Extract here (new folder)" will result in the following structure:

C:\
└ PeaZip\
  ├ ArchiveType2\
  │ └ ArchiveType2\     <- unnecessary intermediate directory
  │   └ File1.txt
  └  ArchiveType2.zip

This intermedate directory is deleted with its contents being moved up a level, resulting in the same structure as for ArchiveType1.

About

PeaZip modification that checks for an intermediate directory when using "Extract here (in new folder)" and moves all content one level up.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.