async function decompressFile()

in integrations/amplitude-sam/src/handlers/s3-trigger-processor/index.js [21:34]


async function decompressFile(filePath, destination) {
    try {
        var results = await decompress(filePath, destination, {
            filter: file => path.extname(file.path) === '.csv'
        }).then(files => {
            log.info(files);
            return files;
        })
        return results;
    }
    catch (err){
        log.error(err, err.stack);
    }
}