lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/t_processfilemancopyfile.cpp
changeset 52 bf6a71c50e42
parent 0 e4d67989cc36
child 57 2efc27d87e1c
equal deleted inserted replaced
34:5fae379060a7 52:bf6a71c50e42
    24 
    24 
    25 
    25 
    26 // Copy the files specified.
    26 // Copy the files specified.
    27 void CopyFileL(const TDesC& anOld, const TDesC& aNew)
    27 void CopyFileL(const TDesC& anOld, const TDesC& aNew)
    28 	{	
    28 	{	
       
    29 	TInt r = KErrNone;
    29 	RFs fs;
    30 	RFs fs;
    30 	fs.Connect();	
    31 	r = fs.Connect();
       
    32 	if (r != KErrNone)
       
    33 		{
       
    34 			User::Leave(r);
       
    35 		}	
    31 	CleanupClosePushL(fs);
    36 	CleanupClosePushL(fs);
    32 
    37 
    33 	CFileMan* fileMan = CFileMan::NewL(fs);
    38 	CFileMan* fileMan = CFileMan::NewL(fs);
    34 	CleanupStack::PushL(fileMan); 
    39 	CleanupStack::PushL(fileMan); 
    35 	
    40