mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 05:44:45 -04:00
Fixed file rename by using a common rsDirUtil function
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b3f433b5f2
commit
9b59f89cdf
6 changed files with 82 additions and 48 deletions
|
@ -40,6 +40,10 @@ std::string removeTopDir(std::string dir);
|
|||
|
||||
std::string removeRootDirs(std::string path, std::string root);
|
||||
|
||||
// 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) ;
|
||||
|
||||
int breakupDirList(std::string path,
|
||||
std::list<std::string> &subdirs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue