mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 03:02:30 +00:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user