mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-14 18:34:29 -05:00
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:
parent
7b534ba299
commit
2807a778e8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user