coreapplicationuis/Rfs/src/rfsCommand.cpp
changeset 72 56a7be608841
parent 0 2e3d3ce01487
equal deleted inserted replaced
71:9352913932ef 72:56a7be608841
     1 /*
     1 /*
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   300         TRACES1("CRfsCommand::ExecuteL(): Source file: %S", &iParams[ 0 ]);        
   300         TRACES1("CRfsCommand::ExecuteL(): Source file: %S", &iParams[ 0 ]);        
   301         TRACES1("CRfsCommand::ExecuteL(): Target file: %S", &fileName);
   301         TRACES1("CRfsCommand::ExecuteL(): Target file: %S", &fileName);
   302         
   302         
   303         TFindFile find( iServer->iFs );
   303         TFindFile find( iServer->iFs );
   304         CDir* files (NULL);
   304         CDir* files (NULL);
   305         find.FindWildByPath( fileName, NULL, files );
   305       TInt ret = find.FindWildByPath( fileName, NULL, files );
   306         if ( files )
   306         if ((ret == KErrNone) &&  files )
   307             {
   307             {
   308             TRACES("CRfsCommand::ExecuteL(): Target file already exists ");
   308             TRACES("CRfsCommand::ExecuteL(): Target file already exists ");
   309             return KErrNone;
   309             return KErrNone;
   310             }
   310             }
   311         }
   311         }