Enable Deflate Mode (MODE Z) for FTP transfers
mainThe library supports FTP transfer compression using the MODE Z command (deflate mode) as specified in draft-preston-ftpext-deflate-04. This allows clients to request compressed data transfers to reduce bandwidth usage.
To use this feature, a client must:
- Send the
FEATcommand to verify thatMODE Zis advertised in the response. - Send the
MODE Zcommand to switch the transfer mode to deflate.
Note: The REST (restart) command is disallowed when using MODE Z because deflate is a streaming compression format and cannot easily resume from a specific byte offset in the compressed stream.
FEAT -> 211 MODE Z
MODE Z -> 200 Using deflate mode