mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-10 16:19:23 +00:00
no // at start of expanded paths (closes #319)
This commit is contained in:
+1
-1
@@ -416,7 +416,7 @@ path_expand(std::vector<std::string>* paths, const std::string& pattern) {
|
|||||||
itr->update((r.pattern()[0] != '.') ? utils::Directory::update_hide_dot : 0);
|
itr->update((r.pattern()[0] != '.') ? utils::Directory::update_hide_dot : 0);
|
||||||
itr->erase(std::remove_if(itr->begin(), itr->end(), rak::on(rak::mem_ref(&utils::directory_entry::d_name), std::not1(r))), itr->end());
|
itr->erase(std::remove_if(itr->begin(), itr->end(), rak::on(rak::mem_ref(&utils::directory_entry::d_name), std::not1(r))), itr->end());
|
||||||
|
|
||||||
std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), rak::bind1st(std::ptr_fun(&path_expand_transform), itr->path() + "/"));
|
std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), rak::bind1st(std::ptr_fun(&path_expand_transform), itr->path() + (itr->path() == "/" ? "" : "/")));
|
||||||
}
|
}
|
||||||
|
|
||||||
currentCache.clear();
|
currentCache.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user