Partially revert "Zip-O-Matic: fix zipping single folder."

This partially reverts commit d1d90b0462.
The real culprit that was causing this issue is #12105, not the
zip/unzip upgrade as originally thought.
This commit is contained in:
Augustin Cavalier 2015-06-01 21:17:03 -04:00
parent b5ab96b2eb
commit 1639fe99db
1 changed files with 6 additions and 1 deletions

View File

@ -95,7 +95,12 @@ ZipperThread::ThreadStartup()
BString archiveName; BString archiveName;
if (gotDirRef || sameFolder) { if (gotDirRef) {
BEntry entry(&dirRef);
BPath path;
entry.GetPath(&path);
archiveName = path.Path();
} else if (sameFolder) {
BEntry entry(&lastRef); BEntry entry(&lastRef);
BPath path; BPath path;
entry.GetParent(&entry); entry.GetParent(&entry);