mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-26 16:48:15 -04:00
removed warning when friend directory list cannot be found
This commit is contained in:
parent
bd9a464d11
commit
10c269ec5a
@ -1144,7 +1144,9 @@ bool InternalFileHierarchyStorage::load(const std::string& fname)
|
|||||||
}
|
}
|
||||||
catch(read_error& e)
|
catch(read_error& e)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_DIRECTORY_STORAGE
|
||||||
std::cerr << "Error while reading: " << e.what() << std::endl;
|
std::cerr << "Error while reading: " << e.what() << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(buffer != NULL)
|
if(buffer != NULL)
|
||||||
free(buffer) ;
|
free(buffer) ;
|
||||||
|
@ -174,10 +174,10 @@ int DirectoryStorage::searchHash(const RsFileHash& hash, std::list<EntryIndex> &
|
|||||||
return mFileHierarchy->searchHash(hash,results);
|
return mFileHierarchy->searchHash(hash,results);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DirectoryStorage::load(const std::string& local_file_name)
|
bool DirectoryStorage::load(const std::string& local_file_name)
|
||||||
{
|
{
|
||||||
RS_STACK_MUTEX(mDirStorageMtx) ;
|
RS_STACK_MUTEX(mDirStorageMtx) ;
|
||||||
mFileHierarchy->load(local_file_name);
|
return mFileHierarchy->load(local_file_name);
|
||||||
}
|
}
|
||||||
void DirectoryStorage::save(const std::string& local_file_name)
|
void DirectoryStorage::save(const std::string& local_file_name)
|
||||||
{
|
{
|
||||||
|
@ -152,7 +152,7 @@ class DirectoryStorage
|
|||||||
void cleanup();
|
void cleanup();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void load(const std::string& local_file_name) ;
|
bool load(const std::string& local_file_name) ;
|
||||||
void save(const std::string& local_file_name) ;
|
void save(const std::string& local_file_name) ;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -190,7 +190,9 @@ bool FileListIO::loadEncryptedDataFromFile(const std::string& fname,unsigned cha
|
|||||||
|
|
||||||
if(!RsDirUtil::checkFile( fname,file_size,false ) )
|
if(!RsDirUtil::checkFile( fname,file_size,false ) )
|
||||||
{
|
{
|
||||||
|
#ifdef FIM_DEBUG
|
||||||
std::cerr << "Encrypted file " << fname << " not available." << std::endl;
|
std::cerr << "Encrypted file " << fname << " not available." << std::endl;
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user