Subversion Repositories spk

Rev

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

Rev 127 Rev 130
Line 108... Line 108...
108
		CLog::logf(CLog::Log_Install, 2, "Created new directory, %s", newDir.c_str());
108
		CLog::logf(CLog::Log_Install, 2, "Created new directory, %s", newDir.c_str());
109
		AddLogEntry(SPKINSTALL_CREATEDIRECTORY, newDir, errors);
109
		AddLogEntry(SPKINSTALL_CREATEDIRECTORY, newDir, errors);
110
	}
110
	}
111
 
111
 
112
	// now lets copy the file
112
	// now lets copy the file
113
	CFileIO CopyFile(f->GetFilePointer());
113
	CFileIO CopyFile(f->filePointer());
114
	if ( CopyFile.copy(oDir.File(newDir + "/" + f->GetFilename().ToString()).ToString()) )
114
	if ( CopyFile.copy(oDir.File(newDir + "/" + f->GetFilename().ToString()).ToString()) )
115
	{
115
	{
116
		CLog::logf(CLog::Log_Install, 2, "Original file: %s has been backed up", f->GetNameDirectory(NULL).c_str());
116
		CLog::logf(CLog::Log_Install, 2, "Original file: %s has been backed up", f->GetNameDirectory(NULL).c_str());
117
		AddLogEntry(SPKINSTALL_ORIGINAL_BACKUP, f->GetNameDirectory(NULL), errors);
117
		AddLogEntry(SPKINSTALL_ORIGINAL_BACKUP, f->GetNameDirectory(NULL), errors);
118
		return true;
118
		return true;