From 2807a778e86911d27df815725e5f310d57fdc4d6 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 11 Aug 2009 20:00:08 +0000 Subject: [PATCH] ensured early creation of cache directories to avoid "Cannot copy file" bug git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1521 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/ft/ftserver.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretroshare/src/ft/ftserver.cc b/libretroshare/src/ft/ftserver.cc index 693de6ff6..2f21bff0c 100644 --- a/libretroshare/src/ft/ftserver.cc +++ b/libretroshare/src/ft/ftserver.cc @@ -24,6 +24,7 @@ */ #include "util/rsdebug.h" +#include "util/rsdir.h" const int ftserverzone = 29539; #include "ft/ftserver.h" @@ -76,6 +77,9 @@ void ftServer::setConfigDirectory(std::string path) std::string localcachedir = mConfigPath + "/cache/local"; std::string remotecachedir = mConfigPath + "/cache/remote"; + RsDirUtil::checkCreateDirectory(localcachedir) ; + RsDirUtil::checkCreateDirectory(remotecachedir) ; + //mFiStore -> setCacheDir(remotecachedir); //mFiMon -> setCacheDir(localcachedir);