persist etag for addressbook subscription

This commit is contained in:
orignal 2016-03-14 16:05:57 -04:00
parent 4934fc8809
commit 1a894abcff
4 changed files with 31 additions and 5 deletions

7
FS.cpp
View file

@ -102,6 +102,13 @@ namespace fs {
return boost::filesystem::remove(path);
}
bool CreateDirectory (const std::string& path)
{
if (boost::filesystem::exists(path) &&
boost::filesystem::is_directory (boost::filesystem::status (path))) return true;
return boost::filesystem::create_directory(path);
}
void HashedStorage::SetPlace(const std::string &path) {
root = path + i2p::fs::dirSep + name;
}