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>FSDirectoryEntryInfo, FSDirectoryEntryInfo</title> 7<link rel="stylesheet" href="../css/nitro.css" type="text/css" /> 8</head> 9<body> 10 11<h1>FSDirectoryEntryInfo(W) <img src="../image/NTR.gif"align="middle"><img src="../image/TWL.gif" align="middle"></h1> 12<h2>Definition</h2> 13<pre><code> 14#define FS_ENTRY_SHORTNAME_MAX 16 15#define FS_ENTRY_LONGNAME_MAX 260 16 17typedef struct FSDirectoryEntryInfo 18{ 19 char shortname[FS_ENTRY_SHORTNAME_MAX]; 20 u32 shortname_length; 21 char longname[FS_ENTRY_LONGNAME_MAX]; 22 u32 longname_length; 23 u32 <a href="FSPathInfo.html">attributes</a>; 24 <a href="FSDateTime.html">FSDateTime</a> atime; 25 <a href="FSDateTime.html">FSDateTime</a> mtime; 26 <a href="FSDateTime.html">FSDateTime</a> ctime; 27 u32 filesize; 28 u32 id; 29} 30FSDirectoryEntryInfo; 31 32typedef struct FSDirectoryEntryInfoW 33{ 34 u32 <a href="FSPathInfo.html">attributes</a>; 35 <a href="FSDateTime.html">FSDateTime</a> atime; 36 <a href="FSDateTime.html">FSDateTime</a> mtime; 37 <a href="FSDateTime.html">FSDateTime</a> ctime; 38 u32 filesize; 39 u32 id; 40 u32 shortname_length; 41 u32 longname_length; 42 char shortname[FS_ENTRY_SHORTNAME_MAX]; 43 u16 longname[FS_ENTRY_LONGNAME_MAX]; 44} 45FSDirectoryEntryInfoW; 46 47</code></pre> 48 49<h2>Description</h2> 50<p>This structure indicates the entry information that can be obtained with the <code><a href="directory/FS_ReadDirectory.html">FS_ReadDirectory</a></code> or <code><a href="directory/FS_ReadDirectory.html">FS_ReadDirectoryW</a></code> function. The details of each member are as follows.</p> 51<table> 52<tr><td>shortname</td><td>The entry name in so-called "FAT format" (8.3 format). An entry name will only be stored here if there was originally a longer name that has been shortened. Otherwise, this will be an empty string. This field's character code depends upon the file creation environment. It will be <CODE>Shift_JIS</CODE> for files created on the TWL system.</td></tr> 53<tr><td>shortname_length</td><td>The effective length of <CODE>shortname</CODE>. The <CODE>shortname</CODE> member will always be terminated with "\0." This is provided for convenience.</td></tr> 54<tr><td>longname</td><td>The entry name. This is stored using <CODE>Shift_JIS</CODE> in a <CODE>FSDirectoryEntryInfo</CODE> structure and <CODE>UTF16-LE</CODE> in a <CODE>FSDirectoryEntryInfoW</CODE> structure.</td></tr> 55<tr><td>longname_length</td><td>The effective length of <CODE>longname</CODE>. The <CODE>longname</CODE> member will always be terminated with "\0." This is provided for convenience.</td></tr> 56<tr><td>attributes</td><td>The attributes of the entry. The meaning of each flag is the same as the <CODE>attributes</CODE> member of <a href="FSPathInfo.html">FSPathInfo</a>.</td></tr> 57<tr><td>mtime</td><td>The last date/time modified for an entry, expressed as an <a href="FSDateTime.html">FSDateTime</a> type. If the date/time information is invalid, all members will be 0.</td></tr> 58<tr><td>filesize</td><td>Size of the file. Only valid if the entry is a file.</td></tr> 59<tr><td>id</td><td>The ID of the file or directory. The value that is obtained can be used with functions such as <code><a href="file/FS_OpenFileFast.html">FS_OpenFileFast()</a></code>. In cases where file IDs or directory IDs are not supported, such as with <a href="archive_nand_spec.html">NAND archives</a>, FS_INVALID_FILE_ID will always result.</td></tr> 60</table> 61 62<h2>See Also</h2> 63<p><code><a href="directory/FS_CreateFile.html">FS_CreateFile</a> <a href="directory/FS_CreateDirectory.html">FS_CreateDirectory</a></code></p> 64 65<h2>Revision History</h2> 66<p> 672008/09/02 Added notes concerning Unicode versions of the structures.<br />2008/06/13 Combined the description of the <CODE>attributes</CODE> flag with <CODE>FSPathInfo</CODE>, and added a link. <br />2007/09/18 Initial version.<br /> 68</p> 69<hr><p>CONFIDENTIAL</p></body> 70</html> 71