Symbian3/PDK/Source/GUID-EF4423F9-05A5-5DD5-BDB6-C7D8F7901396.dita
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 14 578be2adaf3e
equal deleted inserted replaced
4:4816d766a08a 5:f345bda72bc4
     7     Nokia Corporation - initial contribution.
     7     Nokia Corporation - initial contribution.
     8 Contributors: 
     8 Contributors: 
     9 -->
     9 -->
    10 <!DOCTYPE concept
    10 <!DOCTYPE concept
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    12 <concept xml:lang="en" id="GUID-EF4423F9-05A5-5DD5-BDB6-C7D8F7901396"><title>How to create directories</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>To create a new directory, use <xref href="GUID-E263C747-946F-35AA-9F1D-41833BD350FC.dita#GUID-E263C747-946F-35AA-9F1D-41833BD350FC/GUID-46EE9026-841B-35FC-8083-9847AAA64AAE"><apiname>RFs::MkDir()</apiname></xref>. </p> <codeblock id="GUID-AEE6AE25-E339-5BDC-BEF9-3134C6C55A40" xml:space="preserve">_LIT(KNewDir,"\\FileServerExample\\NewDir\\");
    12 <concept id="GUID-EF4423F9-05A5-5DD5-BDB6-C7D8F7901396" xml:lang="en"><title>How
    13 User::LeaveIfError(fsSession.MkDir(KNewDir));</codeblock> <section><title>Notes</title> <ul><li id="GUID-A8E0B5AD-DE50-547F-BE28-0EE7C2600AE9"><p>When a file or directory name is passed as an argument to <codeph>MkDir()</codeph>, if either or both of the drive letter or parent directory is omitted, the missing component will be taken from the <keyword>session
    13 to create directories</title><shortdesc>This topic describes how to create directories.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
    14                 path</keyword>. Here, the drive letter is taken from the session path. </p> </li> <li id="GUID-E90A2909-0A04-5034-A322-C3540C8C753C"><p>In most directory-related functions in class <xref href="GUID-E263C747-946F-35AA-9F1D-41833BD350FC.dita"><apiname>RFs</apiname></xref>, including <codeph>MkDir()</codeph>, if a file is specified at the end of the path, it will be ignored. Therefore, a backslash should be included after the final directory name in order to indicate that it is a directory. </p> </li> </ul> </section> </conbody></concept>
    14 <p>To create a new directory, use <xref href="GUID-E263C747-946F-35AA-9F1D-41833BD350FC.dita#GUID-E263C747-946F-35AA-9F1D-41833BD350FC/GUID-46EE9026-841B-35FC-8083-9847AAA64AAE"><apiname>RFs::MkDir()</apiname></xref>. </p>
       
    15 <codeblock id="GUID-AEE6AE25-E339-5BDC-BEF9-3134C6C55A40" xml:space="preserve">_LIT(KNewDir,"\\FileServerExample\\NewDir\\");
       
    16 User::LeaveIfError(fsSession.MkDir(KNewDir));</codeblock>
       
    17 <section id="GUID-4FC1743A-CC4D-4F3C-A9C6-46F13E3FCBB1"><note><ul>
       
    18 <li id="GUID-A8E0B5AD-DE50-547F-BE28-0EE7C2600AE9"><p>When a file or directory
       
    19 name is passed as an argument to <codeph>MkDir()</codeph>, if either or both
       
    20 of the drive letter or parent directory is omitted, the missing component
       
    21 will be taken from the <keyword>session                 path</keyword>. Here,
       
    22 the drive letter is taken from the session path. </p> </li>
       
    23 <li id="GUID-E90A2909-0A04-5034-A322-C3540C8C753C"><p>In most directory-related
       
    24 functions in class <xref href="GUID-E263C747-946F-35AA-9F1D-41833BD350FC.dita"><apiname>RFs</apiname></xref>, including <codeph>MkDir()</codeph>,
       
    25 if a file is specified at the end of the path, it will be ignored. Therefore,
       
    26 a backslash should be included after the final directory name in order to
       
    27 indicate that it is a directory. </p> </li>
       
    28 </ul></note> </section>
       
    29 </conbody></concept>