add optional RageFileDriver::MoveFile override; implement for RageFileDriverDirect and RageFileDriverTimeout

This commit is contained in:
Glenn Maynard
2005-09-28 22:59:12 +00:00
parent 6698a2ba91
commit 04ec4e66f4
7 changed files with 81 additions and 1 deletions
@@ -34,6 +34,13 @@ int DoStat( const CString &sPath, struct stat *st )
return stat( DoPathReplace(sPath), st );
}
int DoRename( const CString &sOldPath, const CString &sNewPath )
{
CString TempPath = sPath;
TempPath.Replace( "/", "\\" );
return rename( sPath );
}
int DoRemove( const CString &sPath )
{
return remove( DoPathReplace(sPath) );