serialserver/c32serialserver/LOOPBACK/LOGGER.CPP
branchRCL_3
changeset 48 07656293a99c
parent 0 dfb7c4ff071f
equal deleted inserted replaced
37:35c06c1d4fa6 48:07656293a99c
    72  * \note      the logging for each session will be appended to the previous logfile.
    72  * \note      the logging for each session will be appended to the previous logfile.
    73  */
    73  */
    74 	{
    74 	{
    75 	if (FolderExists())
    75 	if (FolderExists())
    76 		{
    76 		{
    77 		iFs.Connect();
    77 		User::LeaveIfError(iFs.Connect());
    78 		TInt ret=KErrNone;
    78 		TInt ret=KErrNone;
    79 	#if !(defined (_DEBUG))
    79 	#if !(defined (_DEBUG))
    80 		ret=iFs.Delete(KHayesLogFileName);
    80 		ret=iFs.Delete(KHayesLogFileName);
    81 		if(ret==KErrNone || ret==KErrNotFound)
    81 		if(ret==KErrNone || ret==KErrNotFound)
    82 			ret=iFile.Create(iFs,KHayesLogFileName,EFileShareAny|EFileWrite);
    82 			ret=iFile.Create(iFs,KHayesLogFileName,EFileShareAny|EFileWrite);
   258  * @return	boolean value of ETrue if folder and EFalse if folder does not exist.
   258  * @return	boolean value of ETrue if folder and EFalse if folder does not exist.
   259  * @note    This is a static method.
   259  * @note    This is a static method.
   260  */
   260  */
   261 	{
   261 	{
   262 	TUint n;
   262 	TUint n;
   263 	iFs.Connect();
   263 	User::LeaveIfError(iFs.Connect());
   264 	TInt ret=iFs.Att(KHayesLogFolder,n);
   264 	TInt ret=iFs.Att(KHayesLogFolder,n);
   265 	iFs.Close();
   265 	iFs.Close();
   266 
   266 
   267 	if (ret==KErrNone)
   267 	if (ret==KErrNone)
   268 		return ETrue;
   268 		return ETrue;