Add new utility functions FileCommit(), RenameOver()

This commit is contained in:
Jeff Garzik
2012-05-12 01:24:27 -04:00
committed by Jeff Garzik
parent 49232d1abf
commit 768e5d52fb
3 changed files with 24 additions and 7 deletions

View File

@@ -152,7 +152,9 @@ std::string EncodeBase64(const std::string& str);
void ParseParameters(int argc, const char*const argv[]);
bool WildcardMatch(const char* psz, const char* mask);
bool WildcardMatch(const std::string& str, const std::string& mask);
void FileCommit(FILE *fileout);
int GetFilesize(FILE* file);
bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest);
boost::filesystem::path GetDefaultDataDir();
const boost::filesystem::path &GetDataDir(bool fNetSpecific = true);
boost::filesystem::path GetConfigFile();