From 62da6b0279326d5ab5d63df486e4475878ac4d9c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 25 Mar 2007 00:50:44 +0000 Subject: Allow '/' as a path separator on all platforms, even Win32 (refs #3, merges [1496]) --- lib/backupstore/BackupStoreInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/backupstore/BackupStoreInfo.cpp b/lib/backupstore/BackupStoreInfo.cpp index ce785dde..3588cc00 100644 --- a/lib/backupstore/BackupStoreInfo.cpp +++ b/lib/backupstore/BackupStoreInfo.cpp @@ -124,7 +124,8 @@ void BackupStoreInfo::CreateNew(int32_t AccountID, const std::string &rRootDir, }; // Generate the filename - ASSERT(rRootDir[rRootDir.size() - 1] == DIRECTORY_SEPARATOR_ASCHAR); + ASSERT(rRootDir[rRootDir.size() - 1] == '/' || + rRootDir[rRootDir.size() - 1] == DIRECTORY_SEPARATOR_ASCHAR); std::string fn(rRootDir + INFO_FILENAME); // Open the file for writing -- cgit v1.2.3