mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Some random clean-up in CFile::Delete. My first commit. Yay!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1694 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -183,8 +183,7 @@ bool CFile::Move(const CString& sOldFileName, const CString& sNewFileName, bool
|
||||
return false;
|
||||
}
|
||||
|
||||
//CString sNewLongName = (sNewFileName[0] == '/') ? sNewFileName : m_sPath + "/" + sNewFileName;
|
||||
return (rename(sOldFileName.c_str(), sNewFileName.c_str()) == 0) ? true : false;
|
||||
return (rename(sOldFileName.c_str(), sNewFileName.c_str()) == 0);
|
||||
}
|
||||
|
||||
bool CFile::Copy(const CString& sOldFileName, const CString& sNewFileName, bool bOverwrite) {
|
||||
|
||||
Reference in New Issue
Block a user