robinrodricks / FluentStorage

A polycloud .NET cloud storage abstraction layer. Provides Blob storage (AWS S3, GCP, FTP, SFTP, Azure Blob/File/Event Hub/Data Lake) and Messaging (AWS SQS, Azure Queue/ServiceBus). Supports .NET 5+ and .NET Standard 2.0+. Pure C#.
MIT License
263 stars 33 forks source link

ZipArchive contains empty named folder at root #39

Closed ckpearson closed 2 weeks ago

ckpearson commented 11 months ago

When using the zip-backed module, Windows explorer claims the archive is empty despite being > 0 size.

Opening the archive in 7-Zip shows a folder at the top level, displayed as '_', and when browsing to it the data I'm expecting at root is there, and the path in the UI shows as:

my_zip.zip\\

I think what might be happening is that a leading '/' is being provided when getting an entry in the archive, but I'm not 100% on this.

robinrodricks commented 10 months ago

Can you write a small c# console test program and post it here so I can check it out?

robinrodricks commented 7 months ago

Any fix and PR will be greatly appreciated.

robinrodricks commented 2 weeks ago

Thanks for the fix.