TUnZipper and custom output stream - do not create a TFileStream for directories
Original Reporter info from Mantis: Michal Gawrycki @michalgw
-
Reporter name: Michal Gawrycki
Original Reporter info from Mantis: Michal Gawrycki @michalgw
- Reporter name: Michal Gawrycki
Description:
TUnZipper and custom output stream via OnCreateStream event - TUnZipper should not create TFileStream if current item is a directory and event handler returns an unassigned stream (nil).
Now if the OnCreateStream event handler does not create a stream and returns "AStream" = nil, TFileStream is created even for the directory. In the case of a directory, it should not create any stream because it is not used anywhere.
Patch attached.
Mantis conversion info:
- Mantis ID: 35674
- Fixed in version: 3.3.1
- Fixed in revision: 42174 (#109abf3d)
- Target version: 3.2.0