From ba02c047fce87e157624ec13886cc6cc0b8a17e6 Mon Sep 17 00:00:00 2001
From: jweg <jweg@informatik.uni-kiel.de>
Date: Thu, 12 Oct 2017 11:16:03 +0200
Subject: [PATCH] minor change

---
 app.js                                 | 1 +
 public/javascripts/backendFunctions.js | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/app.js b/app.js
index 4892eee..5dd508a 100644
--- a/app.js
+++ b/app.js
@@ -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);
diff --git a/public/javascripts/backendFunctions.js b/public/javascripts/backendFunctions.js
index a39b823..db3d774 100644
--- a/public/javascripts/backendFunctions.js
+++ b/public/javascripts/backendFunctions.js
@@ -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);
-- 
GitLab