Say, we've got following directory tree (within any selected directory):
The directories do contain a few files:
Now I'm going to archive just the "c" directory, with its entire contents:
7z a -r c.7z c
Unfortunately, the created archive will contain both "c" (with 3.txt) and
"b/c" (with 4.txt) which obviously WASN'T what I requested, right? Seems to
be a flaw in a need for a fix.
7zip for Linux (on Slackware 14.1, 64-bit):
7-Zip  9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=pl_PL,Utf16=on,HugeFiles=on,2 CPUs)
You are telling 7zip to look recursively for "c" and add it to your archive. So this is exactly what you requested. The flaw is the "-r" parameter in your command line.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.