Skip to content
Snippets Groups Projects
Commit ba02c047 authored by Josefine Wegert's avatar Josefine Wegert
Browse files

minor change

parent c669dca6
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ app.set('zipFunctions', zipFunctions);
//clientCounter holds the number of clients who wants to download files
let clientCounter = 0;
app.locals.clientCounter = clientCounter;
//routes
require('./routes/home.js')(app);
require('./routes/download.js')(app);
......
......@@ -3,10 +3,11 @@
//These functions handle everything regarding the backend of ExplorViz except adding it to the zip. Each will return a Promise.
function prepareClientFolder(clientName, fileName){
return new Promise((resolve,reject)=>{
exec('cp -R ' + fileName + ' ' + clientName + '/',(error,stdout,stderr)=>{
exec('cp -R ' + fileName + '/ ' + clientName + '/',(error,stdout,stderr)=>{
if (error) {
reject(error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment