lowlevellibsandfws/pluginfw/Framework/frame/FileUtils.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:54:36 +0300
branchRCL_3
changeset 56 acd3cd4aaceb
parent 0 e4d67989cc36
permissions -rw-r--r--
Revision: 201021 Kit: 201035

// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// Utils.cpp
// Implementation for classes in Utils.h
// 
//

/**
 @file
*/

#include <f32file.h>

#include "FileUtils.h"



/**
Set the given filename and path to be relative to the given drive.

It is assumed that the input filepath is of the form:

	?:*   (? = any single character, * = any number of characters)

The ? will be replaced by the letter corresponding to the given drive number.

@param aFileName The input filepath. On completion this will contain the 
					resulting path.
@param aDrive	The drive number to set to.
*/
void TEComFileUtils::SetToDrive(TDes& aFileName, TInt aDrive)
	{
	aFileName[0] = 'A' + static_cast<TInt>(aDrive);
	}