@@ -480,12 +480,17 @@ attributes.fileGroupOwnerAccountID]; entry.owner = attributes.fileOwnerAccountName; entry.group = attributes.fileGroupOwnerAccountName; #endif - if ([type isEqual: OFFileTypeDirectory]) + if ([type isEqual: OFFileTypeDirectory]) { entry.compressionMethod = @"-lhd-"; + + if (![entry.fileName hasSuffix: @"/"]) + entry.fileName = [entry.fileName + stringByAppendingString: @"/"]; + } output = [_archive streamForWritingEntry: entry]; if ([type isEqual: OFFileTypeRegular]) { unsigned long long written = 0;