mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
fixed GH #2188: handle directory entries stored with DEFLATE compression method
This commit is contained in:
@@ -300,7 +300,7 @@ inline bool ZipFileInfo::isFile() const
|
||||
inline bool ZipFileInfo::isDirectory() const
|
||||
{
|
||||
poco_assert_dbg(!_fileName.empty());
|
||||
return getUncompressedSize() == 0 && getCompressionMethod() == ZipCommon::CM_STORE && _fileName[_fileName.length()-1] == '/';
|
||||
return getUncompressedSize() == 0 && _fileName[_fileName.length()-1] == '/';
|
||||
}
|
||||
|
||||
|
||||
|
@@ -464,7 +464,7 @@ inline bool ZipLocalFileHeader::isFile() const
|
||||
inline bool ZipLocalFileHeader::isDirectory() const
|
||||
{
|
||||
poco_assert_dbg(!_fileName.empty());
|
||||
return getUncompressedSize() == 0 && getCompressionMethod() == ZipCommon::CM_STORE && _fileName[_fileName.length()-1] == '/';
|
||||
return getUncompressedSize() == 0 && _fileName[_fileName.length()-1] == '/';
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user