Changeset 1022 for trunk/rtorrent/src/core/manager.cc
- Timestamp:
- 12/23/07 14:12:23 (4 years ago)
- Files:
-
- 1 modified
-
trunk/rtorrent/src/core/manager.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtorrent/src/core/manager.cc
r1013 r1022 57 57 58 58 #include "rpc/parse_commands.h" 59 #include "utils/directory.h" 59 60 60 61 #include "globals.h" … … 418 419 } 419 420 421 utils::Directory 422 path_expand_transform(std::string path, const utils::directory_entry& entry) { 423 return path + entry.d_name; 424 } 425 420 426 // Move this somewhere better. 421 427 void … … 455 461 // starts with the same. 456 462 itr->update(r.pattern()[0] != '.'); 457 itr->erase(std::remove_if(itr->begin(), itr->end(), std::not1(r)), itr->end());458 459 std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), std::bind1st(std::plus<std::string>(), itr->get_path() + "/"));463 itr->erase(std::remove_if(itr->begin(), itr->end(), rak::on(rak::mem_ref(&utils::directory_entry::d_name), std::not1(r))), itr->end()); 464 465 std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), rak::bind1st(std::ptr_fun(&path_expand_transform), itr->get_path() + "/")); 460 466 } 461 467
