src/shared_modules/content_manager/doc/components/GZIP_DECOMPRESSOR.md
The gzip decompressor stage is part of the Content Manager orchestration and is in charge of decompressing the .gz files fetched in the download stage. If the decompression is successful, this stage also updates the context data paths.
Paths before stage execution:
"paths": [
"/tmp/outputFolder/downloads/file1.json.gz",
"/tmp/outputFolder/downloads/file2.xml.gz"
]
Paths after stage execution:
"paths": [
"/tmp/outputFolder/contents/file1.json",
"/tmp/outputFolder/contents/file2.xml"
]
Note: In order to generate the output files names, the stage copies the input files names and removes their final extensions. That being said, if an input file name has only the
.gzextension, its respective output file will have no extension at all. For example, for an input file calledcontent.gz, the output file will be called justcontent.
The context fields related to this stage are:
data: Used to read and update the paths under the paths key.outputFolder: Used to read the downloaded files and to store the decompressed files.