diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-01-17 21:59:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-01-17 21:59:13 +0000 |
commit | 5035fdfe9be9ce82d3f6c6affa310e8763d7b102 (patch) | |
tree | 1fdc8af2ee79fc45c452767aa5a9c812fac4c7bc /bin | |
parent | 3dc6cc0f31914aecc0900583dff6c80b00987611 (diff) |
Moved MakeFullPath into its own library file so that we can share it
(BackupQueries needs it too) (refs #3)
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupClientDirectoryRecord.cpp | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp index 1cc10d99..43824130 100644 --- a/bin/bbackupd/BackupClientDirectoryRecord.cpp +++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp @@ -29,6 +29,7 @@ #include "BackupDaemon.h" #include "BackupStoreException.h" #include "Archive.h" +#include "PathUtils.h" #include "MemLeakFindOn.h" @@ -97,33 +98,6 @@ void BackupClientDirectoryRecord::DeleteSubDirectories() // -------------------------------------------------------------------------- // // Function -// Name: MakeFullPath(const std::string& rDir, const std::string& rFile) -// Purpose: Combine directory and file name -// Created: 2006/08/10 -// -// -------------------------------------------------------------------------- -static std::string MakeFullPath(const std::string& rDir, - const std::string& rFile) -{ - std::string result; - - if (rDir.size() > 0 && - rDir[rDir.size()-1] == DIRECTORY_SEPARATOR_ASCHAR) - { - result = rDir + rFile; - } - else - { - result = rDir + DIRECTORY_SEPARATOR + rFile; - } - - return result; -} - - -// -------------------------------------------------------------------------- -// -// Function // Name: BackupClientDirectoryRecord::SyncDirectory(BackupClientDirectoryRecord::SyncParams &, int64_t, const std::string &, bool) // Purpose: Syncronise, recusively, a local directory with the server. // Created: 2003/10/08 |