mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 08:29:26 -05:00
added blank cc file
This commit is contained in:
parent
63063102bb
commit
3bf3d0c360
35
libretroshare/src/file_sharing/directory_updater.cc
Normal file
35
libretroshare/src/file_sharing/directory_updater.cc
Normal file
@ -0,0 +1,35 @@
|
||||
#include "directory_storage.h"
|
||||
#include "directory_updater.h"
|
||||
|
||||
void RemoteDirectoryUpdater::tick()
|
||||
{
|
||||
// use the stored iterator
|
||||
}
|
||||
|
||||
void LocalDirectoryUpdater::tick()
|
||||
{
|
||||
#ifdef TODO
|
||||
// recursive update algorithm works that way:
|
||||
// - the external loop starts on the shared directory list and goes through sub-directories
|
||||
// - at the same time, it updates the list of shared directories
|
||||
// - the information that is costly to compute (the hash) is store externally into a separate structure.
|
||||
// - doing so, changing directory names or moving files between directories does not cause a re-hash of the content.
|
||||
//
|
||||
for(LocalSharedDirectoryMap::iterator it(mLocalSharedDirs);it;++it)
|
||||
{
|
||||
librs::util::FolderIterator dirIt(realpath);
|
||||
if(!dirIt.isValid())
|
||||
mLocalSharedDirs.removeDirectory(it) ; // this is a complex operation since it needs to *update* it so that it is kept consistent.
|
||||
|
||||
while(dirIt.readdir())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if(mHashCache.getHash(realpath+"/"+fe.name,fe.size,fe.modtime,fe.hash))
|
||||
{
|
||||
;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
Loading…
Reference in New Issue
Block a user