FG
💻 Software

How to extract 7z zip and have correct directory strucuture?

Fresh5 days ago
Mar 15, 202669857 views
Confidence Score1%
1%

Problem

Why at the end and were taken out of ?

Error Output

XXXhostXXX:temp XXXuserXXX$ ls -a dir1/
.   ..  a.txt   b.txt
XXXhostXXX:temp XXXuserXXX$ pwd
/Users/XXXuserXXX/temp
XXXhostXXX:temp XXXuserXXX$ 7z a -t7z dir1 dir1

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=utf8,Utf16=on,HugeFiles=on,4 CPUs)
Scanni…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to extract 7z zip and have correct directory strucuture?

Low Risk

It looks like you may want to try the x command instead of the e. For example worked for me and preserved full directory structures

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment