mkdir.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <meta http-equiv="Content-Style-Type" content="text/css">
  6. <link rel="up" title="FatFs" href="../00index_e.html">
  7. <link rel="alternate" hreflang="ja" title="Japanese" href="../ja/mkdir.html">
  8. <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
  9. <title>FatFs - f_mkdir</title>
  10. </head>
  11. <body>
  12. <div class="para func">
  13. <h2>f_mkdir</h2>
  14. <p>The f_mkdir function creates a new directory.</p>
  15. <pre>
  16. FRESULT f_mkdir (
  17. const TCHAR* <span class="arg">path</span> <span class="c">/* [IN] Directory name */</span>
  18. );
  19. </pre>
  20. </div>
  21. <div class="para arg">
  22. <h4>Parameter</h4>
  23. <dl class="par">
  24. <dt>path</dt>
  25. <dd>Pointer to the null-terminated string that specifies the <a href="filename.html">directory name</a> to create. </dd>
  26. </dl>
  27. </div>
  28. <div class="para ret">
  29. <h4>Return Value</h4>
  30. <p>
  31. <a href="rc.html#ok">FR_OK</a>,
  32. <a href="rc.html#de">FR_DISK_ERR</a>,
  33. <a href="rc.html#ie">FR_INT_ERR</a>,
  34. <a href="rc.html#nr">FR_NOT_READY</a>,
  35. <a href="rc.html#np">FR_NO_PATH</a>,
  36. <a href="rc.html#in">FR_INVALID_NAME</a>,
  37. <a href="rc.html#de">FR_DENIED</a>,
  38. <a href="rc.html#ex">FR_EXIST</a>,
  39. <a href="rc.html#wp">FR_WRITE_PROTECTED</a>,
  40. <a href="rc.html#id">FR_INVALID_DRIVE</a>,
  41. <a href="rc.html#ne">FR_NOT_ENABLED</a>,
  42. <a href="rc.html#ns">FR_NO_FILESYSTEM</a>,
  43. <a href="rc.html#tm">FR_TIMEOUT</a>,
  44. <a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>
  45. </p>
  46. </div>
  47. <div class="para desc">
  48. <h4>Description</h4>
  49. <p>This function creates a new directory.</p>
  50. </div>
  51. <div class="para comp">
  52. <h4>QuickInfo</h4>
  53. <p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_FS_MINIMIZE == 0</tt>.</p>
  54. </div>
  55. <div class="para use">
  56. <h4>Example</h4>
  57. <pre>
  58. res = f_mkdir("sub1");
  59. if (res) die(res);
  60. res = f_mkdir("sub1/sub2");
  61. if (res) die(res);
  62. res = f_mkdir("sub1/sub2/sub3");
  63. if (res) die(res);
  64. </pre>
  65. </div>
  66. <p class="foot"><a href="../00index_e.html">Return</a></p>
  67. </body>
  68. </html>