equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Utils.cpp |
|
15 // Implementation for classes in Utils.h |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 */ |
|
22 |
|
23 #include <f32file.h> |
|
24 |
|
25 #include "FileUtils.h" |
|
26 |
|
27 |
|
28 |
|
29 /** |
|
30 Set the given filename and path to be relative to the given drive. |
|
31 |
|
32 It is assumed that the input filepath is of the form: |
|
33 |
|
34 ?:* (? = any single character, * = any number of characters) |
|
35 |
|
36 The ? will be replaced by the letter corresponding to the given drive number. |
|
37 |
|
38 @param aFileName The input filepath. On completion this will contain the |
|
39 resulting path. |
|
40 @param aDrive The drive number to set to. |
|
41 */ |
|
42 void TEComFileUtils::SetToDrive(TDes& aFileName, TInt aDrive) |
|
43 { |
|
44 aFileName[0] = 'A' + static_cast<TInt>(aDrive); |
|
45 } |
|
46 |
|
47 |
|
48 |
|
49 |