Hi,
I need to perform the following task in Python using Aspose.ZIP for Python. Could you please port this C# code to Python? Thanks
if(entry.Name.ToLower().Contains(".zip"))
{
// Create memory stream for nested archive
MemoryStream nestedArchiveStream = new MemoryStream();
// Copy archive to memory stream
entry.Open().CopyTo(nestedArchiveStream);
// Load the nested archive from memory stream
using (var nestedArchive = new Archive(nestedArchiveStream))
{
// Extract archive to disk.
nestedArchive.ExtractToDirectory("Archives/Extracted/"+entry.Name);
}
}