Extract() from gzip

Hi. I’m trying to use

extract("gzip", "example.gz", "files/");

which leads to Java.io.IOexception:

can't extract in given format

GZIP library is installed on server. Is there any additional configuration needed to make it work?