tasks/untar.js
function mustUnzip(file, mode){
  if (mode){
    return mode === 'tgz';
  }
  var extension = path.extname(file);
  return contains(['.tgz', '.gz'], extension);
}
function mustUnzip(file, mode){
  if (mode){
    return mode === 'tgz';
  }
  var extension = path.extname(file);
  return contains(['.tgz', '.gz'], extension);
}
function mustUnzip ( file , mode ) { if ( mode ) { return mode === 'tgz' ; } var extension = path . extname ( file ) ; return contains ( [ '.tgz' , '.gz' ] , extension ) ; }
Return true if the processed file must be unzipped.
Check the mode and default to analyzing the file extension.

@param file the processed file
@param [mode] the mode
@returns {Boolean} true if the file must be unzipped
Return true if the processed file must be unzipped . Check the mode and default to analyzing the file extension .