diff -r e20de85af2ee -r ce057bb09d0b lowlevellibsandfws/pluginfw/Framework/frame/FileUtils.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lowlevellibsandfws/pluginfw/Framework/frame/FileUtils.cpp Fri Jun 04 16:20:51 2010 +0100 @@ -0,0 +1,49 @@ +// 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 + +#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(aDrive); + } + + + +