mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
fixed GH #2188: handle directory entries stored with DEFLATE compression method
This commit is contained in:
@@ -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