mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 12:12:31 +00:00
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:
@@ -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())
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user