mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
persist etag for addressbook subscription
This commit is contained in:
parent
4934fc8809
commit
1a894abcff
4 changed files with 31 additions and 5 deletions
7
FS.cpp
7
FS.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue