code: function doInstall(settings, destination) {
    // Create application directories if they don't exist.
    var folders = [
      destination,
      path.join(destination, '/public'),
      path.join(destination, '/extensions')
    ];
    folders.forEach(function(folder) {
      if (!fs.existsSync(folder)) {
        fs.mkdirSync(folder);
      }
    });
  
    // Create settings.json.
    fs.writeFileSync(path.join(destination, 'settings.json'), JSON.stringify(settings, null, '  '), {flag: 'w'});
  }
docs: Create application folder structure and initial settings.