We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Compressing folder to 7Z file display abnormal

I hava a folder,it contains some txt files and some subfolders,the subfolders also contains some txt files.I compress the folder to 7Z file using Aspose.ZIP, When i open the output 7Z file, the subfolders are empty.
version info:Aspose.ZIP for Net 22.12

the demo:

void Main()
	string souceFolder = @"C:\demo\";
	string outZipFile = @"C:\out.7z";

	using (FileStream zipFile = File.Open(outZipFile, FileMode.Create))
		using (SevenZipArchive archive = new SevenZipArchive())
			DirectoryInfo corpus = new DirectoryInfo(souceFolder);

the demo folder:
demo.zip (1.4 KB)

the output 7Z file:
out.7z (678 Bytes)

I see there are filenames like ‘demo\folder1\folder1-file1.txt’ in the output. We tracked the bug in our system as ZIPNET-957. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.

I have a same problem, I think it’s incredible.

This problem is fixed in upcoming 23.1 version.