Subversion Repositories spk

Rev

Rev 125 | Rev 160 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 125 Rev 129
Line 142... Line 142...
142
	return false;
142
	return false;
143
}
143
}
144
 
144
 
145
bool CDirIO::Create(CyString sDir)
145
bool CDirIO::Create(CyString sDir)
146
{
146
{
-
 
147
	return create(sDir.ToString());
-
 
148
}
-
 
149
bool CDirIO::create() const
-
 
150
{
-
 
151
	return create(Utils::String::Null());
-
 
152
}
-
 
153
bool CDirIO::create(const Utils::String &sDir) const
-
 
154
{
147
	Utils::String dir = sDir.ToString();
155
	Utils::String dir = sDir;
148
	if ( dir.empty() )
156
	if ( dir.empty() )
149
		dir = m_sCurrentDir;
157
		dir = m_sCurrentDir;
150
	dir = _parseDir(dir);
158
	dir = _parseDir(dir);
151
 
159
 
152
	// split up directorys
160
	// split up directorys
Line 458... Line 466...
458
CyString CDirIO::Dir(CyString dir)
466
CyString CDirIO::Dir(CyString dir)
459
{
467
{
460
	return _parseDir(dir.ToString());
468
	return _parseDir(dir.ToString());
461
}
469
}
462
 
470
 
463
bool CDirIO::cd(CyString dir)
471
bool CDirIO::cd(const Utils::String &sDir)
464
{
472
{
465
	Utils::String sDir = dir.ToString();
-
 
466
 
-
 
467
	if ( m_sCurrentDir.empty() )
473
	if ( m_sCurrentDir.empty() )
468
		m_sCurrentDir = sDir;
474
		m_sCurrentDir = sDir;
469
	else
475
	else
470
		m_sCurrentDir = m_sCurrentDir + "/" + sDir;
476
		m_sCurrentDir = m_sCurrentDir + "/" + sDir;
471
	m_sCurrentDir = m_sCurrentDir.asFilename();
477
	m_sCurrentDir = m_sCurrentDir.asFilename();
Line 474... Line 480...
474
}
480
}
475
 
481
 
476
bool CDirIO::CreateAndChange(CyString dir)
482
bool CDirIO::CreateAndChange(CyString dir)
477
{
483
{
478
	if ( Create(dir) )
484
	if ( Create(dir) )
479
		return cd(dir);
485
		return cd(dir.ToString());
480
	return false;
486
	return false;
481
}
487
}
482
 
488
 
483
 
489
 
484
Utils::String CDirIO::topDir() const
490
Utils::String CDirIO::topDir() const