adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.29k stars 482 forks source link

Problems discovered while decompressing PosrgresSQL #851

Closed Cyaim closed 4 months ago

Cyaim commented 5 months ago

image

After using this code to decompress 7z, it was found that the database could not be started.

image

Then I searched for the reason for the inability to start, which was caused by the lack of an empty directory named pgsql_tmp after decompression.

adamhathcock commented 5 months ago

Empty directories missing are a known bug. This should be fixed

alexprabhat99 commented 4 months ago

@adamhathcock Can I take this up?

adamhathcock commented 4 months ago

@alexprabhat99 please do. It should be similar for all formats and probably can be implemented for them all at once.

alexprabhat99 commented 4 months ago

@adamhathcock Please check out PR #857 as a potential fix for the above issue.