mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 21:22:31 +00:00
* Fixed a regression that threw an exception for torrents with
empty directories. * When receiving zero length pieces, remove them from the request list. * Send the interested state before any requests as some clients, BitTornado 0.7.14 and uTorrent 0.3.0, disconnect if a request has been received while uninterested. * WITH_POSIX_FALLOCATE configure macro should check against "yes", not "no". * The new priority queue would cause arg torrents to load before session torrents in some cases. Fixed to perform the session torrent tasks before loading arg torrents. * Allow '*' wildcard in filenames when loading torrents. * Added load, load_run, stop_tied and remove_tied settings which can be used to scan a directory for new/removed torrents. These torrents are tied to the lifetime of the torrent file. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@616 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -57,7 +57,7 @@ Directory::is_valid() const {
|
||||
}
|
||||
|
||||
bool
|
||||
Directory::update() {
|
||||
Directory::update(bool hideDot) {
|
||||
if (m_path.empty())
|
||||
throw std::logic_error("Directory::update() tried to open an empty path");
|
||||
|
||||
@@ -71,7 +71,7 @@ Directory::update() {
|
||||
while ((ent = readdir(d)) != NULL) {
|
||||
std::string de(ent->d_name);
|
||||
|
||||
if (!de.empty() && de[0] != '.')
|
||||
if (!de.empty() && (!hideDot || de[0] != '.'))
|
||||
Base::push_back(ent->d_name);
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
bool is_valid() const;
|
||||
|
||||
bool update();
|
||||
bool update(bool hideDot = true);
|
||||
|
||||
const std::string& get_path() { return m_path; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user