fixed bug for 'copy error' and losing cache data

conflict in unix and windows style directory names 
led to cleaning of remote and local directories in 
Cachestrapper::loadlist()


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4403 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2011-07-06 23:46:32 +00:00
parent c62f642706
commit 58ecbcb331

View File

@ -31,8 +31,8 @@
#include <iomanip>
/****
* #define CS_DEBUG 1
***/
* #define CS_DEBUG 1
***/
bool operator<(const CacheId &a, const CacheId &b)
{
@ -1017,7 +1017,7 @@ bool CacheStrapper::loadList(std::list<RsItem *>& load)
#ifdef CS_DEBUG
std::cerr << "CacheStrapper::loadList() Cleaning cache dir: <" << *dit << ">" << std::endl;
#endif
sit = saveFiles.find(*dit);
sit = saveFiles.find(RsDirUtil::convertPathToUnix(*dit));
if (sit != saveFiles.end())
{
#ifdef CS_DEBUG