mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
cleaned the code in fimonitor, modified the order of file hashing, and put a more explicit progress message while hashing.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2438 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b7cd4c0627
commit
b50b33b573
2 changed files with 134 additions and 147 deletions
|
@ -62,6 +62,14 @@ std::string FileIndexMonitor::findRealRoot(std::string base);
|
|||
|
||||
class NotifyBase ;
|
||||
|
||||
class DirContentToHash
|
||||
{
|
||||
public:
|
||||
std::vector<FileEntry> fentries ;
|
||||
|
||||
std::string realpath ;
|
||||
std::string dirpath ;
|
||||
};
|
||||
|
||||
/******************************************************************************************
|
||||
* FileIndexMonitor
|
||||
|
@ -117,6 +125,7 @@ class FileIndexMonitor: public CacheSource, public RsThread
|
|||
|
||||
/* the mutex should be locked before calling... these. */
|
||||
std::string locked_findRealRoot(std::string base) const;
|
||||
void hashFiles(const std::vector<DirContentToHash>& to_hash) ;
|
||||
bool hashFile(std::string path, FileEntry &fi); /* To Implement */
|
||||
|
||||
/* data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue