danicoin/src/Common/Util.h

18 lines
572 B
C
Raw Normal View History

// Copyright (c) 2011-2016 The Cryptonote developers
2014-03-03 22:07:58 +00:00
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
2014-08-13 10:51:37 +00:00
#include <string>
2014-03-03 22:07:58 +00:00
#include <system_error>
2015-07-30 15:22:07 +00:00
namespace Tools
2014-03-03 22:07:58 +00:00
{
2015-07-30 15:22:07 +00:00
std::string getDefaultDataDirectory();
2014-03-03 22:07:58 +00:00
std::string get_os_version_string();
bool create_directories_if_necessary(const std::string& path);
std::error_code replace_file(const std::string& replacement_name, const std::string& replaced_name);
2015-12-09 13:19:03 +00:00
bool directoryExists(const std::string& path);
2014-03-03 22:07:58 +00:00
}