Browse Source

Daemon file storage folder path is treated as a prefix

Rescheleit, Marius 4 years ago
parent
commit
0fcba70be2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      daemon/src/FileManager.cpp

+ 1 - 1
daemon/src/FileManager.cpp

@@ -5,7 +5,7 @@
 
 #include "../include/Config.h"
 
-FileManager::FileManager() : fileDirectory(Config::getValue("filedirectory")), deleteAllowed(Config::getValue("deleteAllowed") == "true") {}
+FileManager::FileManager() : deleteAllowed(Config::getValue("deleteAllowed") == "true"), fileDirectory(Config::getValue("filedirectory") + ((Config::getValue("filedirectory").back() != '/') ? "/" : "" )) {}
 
 FileManager::~FileManager() {
 	cancelPut();