mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 07:40:21 -04:00
removed duplicate hashing function. Now the hash buffer is always 512 bytes.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4038 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
acf536317f
commit
9de341953d
5 changed files with 13 additions and 80 deletions
|
@ -42,8 +42,6 @@ std::string removeRootDir(const std::string& path);
|
|||
std::string removeTopDir(const std::string& dir);
|
||||
std::string removeRootDirs(const std::string& path, const std::string& root);
|
||||
|
||||
bool hashFile(const std::string& full_path,std::string& hash) ;
|
||||
|
||||
// Renames file from to file to. Files should be on the same file system.
|
||||
// returns true if succeed, false otherwise.
|
||||
bool renameFile(const std::string& from,const std::string& to) ;
|
||||
|
@ -65,11 +63,8 @@ bool checkDirectory(const std::string& dir);
|
|||
bool checkCreateDirectory(const std::string& dir);
|
||||
bool cleanupDirectory(const std::string& dir, const std::list<std::string> &keepFiles);
|
||||
|
||||
bool hashFile(const std::string& filepath,
|
||||
std::string &name, std::string &hash, uint64_t &size);
|
||||
|
||||
bool getFileHash(const std::string& filepath,
|
||||
std::string &hash, uint64_t &size);
|
||||
bool hashFile(const std::string& filepath, std::string &name, std::string &hash, uint64_t &size);
|
||||
bool getFileHash(const std::string& filepath,std::string &hash, uint64_t &size);
|
||||
|
||||
|
||||
std::wstring getWideTopDir(std::wstring);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue