return !access(fname, 0) &&
!stat(MBSTRINGCAST fname, &st) &&
return !access(fname, 0) &&
!stat(MBSTRINGCAST fname, &st) &&
// create the file, fail if it already exists and bOverwrite
bool wxFile::Create(const wxChar *szFileName, bool bOverwrite, int accessMode)
{
// create the file, fail if it already exists and bOverwrite
bool wxFile::Create(const wxChar *szFileName, bool bOverwrite, int accessMode)
{
{
// file probably didn't exist, just create with default mode _using_
// user's umask (new files creation should respet umask)
{
// file probably didn't exist, just create with default mode _using_
// user's umask (new files creation should respet umask)
if ( remove(m_strTemp.fn_str()) != 0 )
wxLogSysError(_("can't remove temporary file '%s'"), m_strTemp.c_str());
}
if ( remove(m_strTemp.fn_str()) != 0 )
wxLogSysError(_("can't remove temporary file '%s'"), m_strTemp.c_str());
}