Added setting for session directory.

Added support for quotation in settings.

Added key for changing the priority of all files in a torrent.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@477 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-06-26 19:51:20 +00:00
parent 28b369dc83
commit 2c5ce1989a
15 changed files with 118 additions and 64 deletions
+11
View File
@@ -31,6 +31,17 @@
namespace utils {
bool
Directory::is_valid() const {
if (m_path.empty())
return false;
DIR* d = opendir(m_path.c_str());
closedir(d);
return d;
}
bool
Directory::update() {
if (m_path.empty())
+2
View File
@@ -50,6 +50,8 @@ public:
Directory() {}
Directory(const std::string& path) : m_path(path) {}
bool is_valid() const;
bool update();
const std::string& get_path() { return m_path; }