s/not exists/not exist
This commit is contained in:
parent
7ded72f6ee
commit
c557f60e74
|
@ -127,10 +127,10 @@ bool CFile::Open(const char * lpszFileName, uint32_t nOpenFlags)
|
||||||
|
|
||||||
if ((nOpenFlags & CFileBase::modeCreate) != CFileBase::modeCreate)
|
if ((nOpenFlags & CFileBase::modeCreate) != CFileBase::modeCreate)
|
||||||
{
|
{
|
||||||
printf("Checking if %s exists\n",lpszFileName);
|
printf("Checking if %s exists...\n",lpszFileName);
|
||||||
if (!CPath(lpszFileName).Exists())
|
if (!CPath(lpszFileName).Exists())
|
||||||
{
|
{
|
||||||
printf("%s does not exists\n",lpszFileName);
|
printf("%s does not exist.\n",lpszFileName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -985,7 +985,7 @@ bool CPath::Delete(bool bEvenIfReadOnly) const
|
||||||
uint32_t dwAttr = ::GetFileAttributes(m_strPath.c_str());
|
uint32_t dwAttr = ::GetFileAttributes(m_strPath.c_str());
|
||||||
if (dwAttr == (uint32_t)-1)
|
if (dwAttr == (uint32_t)-1)
|
||||||
{
|
{
|
||||||
// File does not exists
|
// File does not exist.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ void CSettingTypeApplication::Initialize(const char * /*AppName*/)
|
||||||
CPath BaseDir(g_Settings->LoadStringVal(Cmd_BaseDirectory).c_str(), "");
|
CPath BaseDir(g_Settings->LoadStringVal(Cmd_BaseDirectory).c_str(), "");
|
||||||
if (!BaseDir.DirectoryExists())
|
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");
|
WriteTrace(TraceAppInit, TraceDebug, "Done");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue