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
This commit is contained in:
csoler 2009-08-11 20:00:08 +00:00
parent 7b534ba299
commit 2807a778e8

View File

@ -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);