* Keep a cache listing all, including failed, torrent loads and the

mtimes of those files. This is used to ensure that e.g. the watch dir
does not try to load bad/duplicate torrents, in addition to optimizing
the pruning of those already loaded.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1024 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-12-31 10:12:17 +00:00
parent ce64ea89b1
commit 7abc459d74
10 changed files with 215 additions and 25 deletions
+5 -1
View File
@@ -58,7 +58,6 @@ Directory::is_valid() const {
return d;
}
// Update should take various flags and sort functors.
bool
Directory::update(int flags) {
if (m_path.empty())
@@ -80,7 +79,12 @@ Directory::update(int flags) {
itr->d_fileno = entry->d_fileno;
itr->d_reclen = entry->d_reclen;
itr->d_type = entry->d_type;
#ifdef DIRENT_NAMLEN_EXISTS_FOOBAR
itr->d_name = std::string(entry->d_name, entry->d_name + entry->d_namlen);
#else
itr->d_name = std::string(entry->d_name);
#endif
}
closedir(d);