Merge pull request #1128 from cxd4/s/exists/exist

s/not exists/not exist
This commit is contained in:
zilmar 2016-06-26 08:04:47 +10:00 committed by GitHub
commit 562f791f37
3 changed files with 4 additions and 4 deletions

View File

@ -127,10 +127,10 @@ bool CFile::Open(const char * lpszFileName, uint32_t nOpenFlags)
if ((nOpenFlags & CFileBase::modeCreate) != CFileBase::modeCreate)
{
printf("Checking if %s exists\n",lpszFileName);
printf("Checking if %s exists...\n",lpszFileName);
if (!CPath(lpszFileName).Exists())
{
printf("%s does not exists\n",lpszFileName);
printf("%s does not exist.\n",lpszFileName);
return false;
}
}

View File

@ -985,7 +985,7 @@ bool CPath::Delete(bool bEvenIfReadOnly) const
uint32_t dwAttr = ::GetFileAttributes(m_strPath.c_str());
if (dwAttr == (uint32_t)-1)
{
// File does not exists
// File does not exist.
return false;
}

View File

@ -69,7 +69,7 @@ void CSettingTypeApplication::Initialize(const char * /*AppName*/)
CPath BaseDir(g_Settings->LoadStringVal(Cmd_BaseDirectory).c_str(), "");
if (!BaseDir.DirectoryExists())
{
WriteTrace(TraceAppInit, TraceDebug, "BaseDir does not exists, doing nothing");
WriteTrace(TraceAppInit, TraceDebug, "BaseDir does not exist. Doing nothing.");
WriteTrace(TraceAppInit, TraceDebug, "Done");
return;
}