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_CloseDirectory</title>
7<link rel="stylesheet" href="../../css/nitro.css" type="text/css" />
8</head>
9<body>
10
11<h1 align="left">FS_CloseDirectory <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1>
12<h2>Syntax</h2>
13
14<pre><code>
15#include &lt;nitro/fs.h&gt;
16
17BOOL FS_CloseDirectory(<a href="../fs_file_type.html">FSFile</a> *dir);
18</code></pre>
19
20<h2>Arguments</h2>
21<table style="width:100%">
22<tbody>
23<tr>
24<td style="width:13%"><em><strong>dir</strong></em></td>
25<td style="width:87%">Handle of a directory that was opened using <code><a href="FS_OpenDirectory.html">FS_OpenDirectory()</a></code>.</td>
26</tr>
27</tbody>
28</table>
29
30<h2>Return Values</h2>
31<p>TRUE if the directory was closed properly. FALSE otherwise. In case of failure, the error details can be obtained using <code><a href="../file/FS_GetResultCode.html">FS_GetResultCode()</a></code>.</p>
32
33<h2>Description</h2>
34<p>This function closes an open directory.
35</p>
36
37<h2>Note</h2>
38<ul>
39<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>
40</ul>
41
42<h2>See Also</h2>
43<p><code><a href="FS_OpenDirectory.html">FS_OpenDirectory</a> <a href="FS_ReadDirectory.html">FS_ReadDirectory</a></code></p>
44
45<h2>Revision History</h2>
46<p>
472007/09/18 Initial version.
48</p>
49<hr><p>CONFIDENTIAL</p></body>
50</html>
51