mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
remove non existing shared directories when not found on the disk
This commit is contained in:
parent
d7ef33ea3a
commit
d986216f55
@ -114,7 +114,10 @@ void LocalDirectoryUpdater::sweepSharedDirectories()
|
||||
|
||||
std::set<std::string> sub_dir_list ;
|
||||
|
||||
// We re-check that each dir actually exists. It might have been removed from the disk.
|
||||
|
||||
for(std::list<SharedDirInfo>::const_iterator real_dir_it(shared_directory_list.begin());real_dir_it!=shared_directory_list.end();++real_dir_it)
|
||||
if(RsDirUtil::checkDirectory( (*real_dir_it).filename ) )
|
||||
sub_dir_list.insert( (*real_dir_it).filename ) ;
|
||||
|
||||
// make sure that entries in stored_dir_it are the same than paths in real_dir_it, and in the same order.
|
||||
|
Loading…
Reference in New Issue
Block a user