mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 12:42:31 +00:00
Loads correctly formated torrents from session dir when starting.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@294 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+12
-1
@@ -5,6 +5,7 @@
|
||||
#include <stdexcept>
|
||||
#include <dirent.h>
|
||||
|
||||
#include "functional.h"
|
||||
#include "directory.h"
|
||||
|
||||
namespace utils {
|
||||
@@ -28,7 +29,17 @@ Directory::update() {
|
||||
Base::push_back(ent->d_name);
|
||||
}
|
||||
|
||||
std::sort(begin(), end(), std::less<std::string>());
|
||||
Base::sort(std::less<std::string>());
|
||||
}
|
||||
|
||||
Directory::Base
|
||||
Directory::make_list() {
|
||||
Base l;
|
||||
|
||||
for (Base::iterator itr = begin(); itr != end(); ++itr)
|
||||
l.push_back(m_path + *itr);
|
||||
|
||||
return l;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user