lib/impl/importForms/importFromDir.js
function getFormFiles(metaDataFilePath) {
  var formsZipMetaData = require(metaDataFilePath);
  if (formsZipMetaData && formsZipMetaData.files) {
    var formFiles = formsZipMetaData.files;
    return _.map(formFiles, function(formDetails) {
      return formDetails.path;
    });
  } else {
    return [];
  }
}
function getFormFiles(metaDataFilePath) {
  var formsZipMetaData = require(metaDataFilePath);
  if (formsZipMetaData && formsZipMetaData.files) {
    var formFiles = formsZipMetaData.files;
    return _.map(formFiles, function(formDetails) {
      return formDetails.path;
    });
  } else {
    return [];
  }
}
function getFormFiles ( metaDataFilePath ) { var formsZipMetaData = require ( metaDataFilePath ) ; if ( formsZipMetaData && formsZipMetaData . files ) { var formFiles = formsZipMetaData . files ; return _ . map ( formFiles , function ( formDetails ) { return formDetails . path ; } ) ; } else { return [ ] ; } }
Returns an array that contains the form file paths
@param  {String} metaDataFilePath the path to the unzipped form meta data file
@return {Array}  an array that contains the relative paths of the form files
Returns an array that contains the form file paths