1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> 5<meta http-equiv="Content-Style-Type" content="text/css" /> 6<title>FS_CreateDirectory</title> 7<link rel="stylesheet" href="../../css/nitro.css" type="text/css" /> 8</head> 9<body> 10<h1>FS_CreateDirectory <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 11<h2>Syntax</h2> 12 13<pre><code> 14#include <nitro/fs.h> 15 16BOOL FS_CreateDirectory(const char *path, u32 permit); 17</code></pre> 18<h2>Arguments</h2> 19<table style="width:100%"> 20<tbody> 21<tr> 22<td style="width:13%"><CODE>path</CODE></td> 23<td style="width:87%">Path name of the directory to create.</td> 24</tr> 25<tr> 26<td style="width:13%"><CODE>permit</CODE></td> 27<td style="width:87%">Specifies the combination of <br /><a href="../FS_PERMIT.html"><code>FS_PERMIT_*</code></a> flags that specify the access rights to the directory.<br />(This is reserved for future implementation. Access rights are currently ignored.)</td> 28</tr> 29</tbody> 30</table> 31 32<h2>Return Values</h2> 33<p>Returns TRUE if the directory was created properly; returns FALSE otherwise. In case of failure, the error details can be obtained using <code><a href="../archive/FS_GetArchiveResultCode.html">FS_GetArchiveResultCode()</a></code>.</p> 34 35<h2>Description</h2> 36<p>Creates the new directory specified by the arguments. The function returns FALSE in the following situations: 37</p> 38<ul> 39<li>If the target archive does not support the creation of new directories</li> 40<li>If a directory of the same name already exists.</li> 41</ul> 42 43<h2>Note</h2> 44<ul> 45<li>This function cannot be called from the interrupt handler (IRQ mode). Also note that in some cases processing may not end if interrupts are left prohibited.</li> 46</ul> 47 48<h2>See Also</h2> 49<p><code><a href="../FS_PERMIT.html">FS_PERMIT_*</a> <br /> <a href="FS_DeleteDirectory.html">FS_DeleteDirectory</A><br /> <a href="FS_RenameDirectory.html">FS_RenameDirectory</A><br /> <a href="../file/FS_GetResultCode.html">FS_GetResultCode</A></code></p> 50 51<h2>Revision History</h2> 52<p> 532009/02/05 Explained that access rights are currently ignored.<br />2007/09/18 Initial version.<br /> 54</p> 55<hr><p>CONFIDENTIAL</p></body> 56</html> 57