ugfx/src/gfile/fatfs/doc/ja/readdir.html

127 lines
5.0 KiB
HTML
Raw Normal View History

2014-06-24 03:56:13 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="up" title="FatFs" href="../00index_j.html">
<link rel="alternate" hreflang="en" title="English" href="../en/readdir.html">
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
<title>FatFs - f_readdir</title>
</head>
<body>
<div class="para func">
<h2>f_readdir</h2>
<p><EFBFBD>f<EFBFBD>B<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڂ<EFBFBD><EFBFBD>ǂݏo<EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD></p>
<pre>
FRESULT f_readdir (
DIR* <span class="arg">dp</span>, <span class="c">/* [IN] <20>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>E<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>\<5C><><EFBFBD>̂ւ̃|<7C>C<EFBFBD><43><EFBFBD>^ */</span>
FILINFO* <span class="arg">fno</span> <span class="c">/* [OUT] <20>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\<5C><><EFBFBD>̂ւ̃|<7C>C<EFBFBD><43><EFBFBD>^ */</span>
);
</pre>
</div>
<div class="para arg">
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
<dl class="par">
<dt>dp</dt>
<dd><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>ȃf<EFBFBD>B<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>E<EFBFBD>I<EFBFBD>u<EFBFBD>W<EFBFBD>F<EFBFBD>N<EFBFBD>g<EFBFBD>\<5C><><EFBFBD>̂ւ̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</dd>
<dt>fno</dt>
<dd><EFBFBD>ǂݏo<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>B<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڂ<EFBFBD><EFBFBD>i<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\<5C><><EFBFBD>̂ւ̃|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</dd>
</dl>
</div>
<div class="para ret">
<h4><EFBFBD>߂<EFBFBD><EFBFBD>l</h4>
<p>
<a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>,
<a href="rc.html#nc">FR_NOT_ENOUGH_CORE</a>
</p>
</div>
<div class="para desc">
<h4><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
<p><EFBFBD>f<EFBFBD>B<EFBFBD><EFBFBD><EFBFBD>N<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>̍<EFBFBD><EFBFBD><EFBFBD>(<28>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>ƃf<C683>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǂݏo<DD8F><6F><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD>̊֐<CC8A><D690><EFBFBD><EFBFBD>J<EFBFBD><4A><EFBFBD>Ԃ<EFBFBD><D482><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD>Ƃɂ<C682><C982><EFBFBD>̃f<CC83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̑S<CC91>Ă̍<C482><CC8D>ڂ<EFBFBD><DA82>ǂݏo<DD8F><6F><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̏ڍׂɂ‚<C982><C282>Ă<EFBFBD> <tt>FILINFO</tt><EFBFBD>\<5C><><EFBFBD>̂<EFBFBD><CC82>Q<EFBFBD>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD>S<EFBFBD>Ă̍<C482><CC8D>ڂ<EFBFBD><DA82>ǂݏo<DD8F><6F><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>ǂݏo<DD8F><6F><EFBFBD><EFBFBD><EFBFBD>ڂ<EFBFBD><DA82><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>́A<tt>fname[]</tt><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>Ƀk<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>񂪕Ԃ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B<tt class="arg">fno</tt><EFBFBD>Ƀk<EFBFBD><EFBFBD><EFBFBD>E<EFBFBD>|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>w<EFBFBD><EFBFBD><E882B7><EFBFBD>ƁA<C681><41><EFBFBD>̃f<CC83>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD>̃<EFBFBD><CC83>[<5B>h<EFBFBD>E<EFBFBD>C<EFBFBD><43><EFBFBD>f<EFBFBD>b<EFBFBD>N<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD>Ɋ<EFBFBD><C98A><EFBFBD><EFBFBD>߂<EFBFBD><DF82>܂<EFBFBD><DC82>B<EFBFBD>܂<EFBFBD><DC82>A<EFBFBD><41><EFBFBD>̊֐<CC8A><D690>͎<EFBFBD><CD8E>Ɏ<EFBFBD><C98E><EFBFBD><EFBFBD><EFBFBD>Ɋ֘A<D698><41><EFBFBD><EFBFBD><EFBFBD>\<5C><><EFBFBD>I<EFBFBD>v<EFBFBD>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>ς<EFBFBD><CF82><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</p>
<p><EFBFBD>h<EFBFBD>b<EFBFBD>g<EFBFBD>E<EFBFBD>G<EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><EFBFBD>("."<22>A"..")<29>́A<CD81><41><EFBFBD>΃p<CE83>X<EFBFBD><58><EFBFBD>L<EFBFBD><4C><EFBFBD>ȂƂ<C882>(<tt>_FS_RPATH &gt;= 1</tt>)<29>ɂ̂ݏo<DD8F>͂Ɍ<CD82><C98C><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B</p>
<p>LFN<EFBFBD>@<40>\<5C><><EFBFBD>L<EFBFBD><4C><EFBFBD>Ȏ<EFBFBD><C88E>́A<CD81><41><EFBFBD>̊֐<CC8A><D690>̌Ăяo<D18F><6F><EFBFBD>ɐ旧<C990><E697A7><EFBFBD><EFBFBD><tt>FILINFO</tt><EFBFBD>\<5C><><EFBFBD>̂<EFBFBD><tt>lfname</tt><EFBFBD><EFBFBD><tt>lfsize</tt><EFBFBD><EFBFBD><EFBFBD>L<EFBFBD><EFBFBD><EFBFBD>Ȓl<EFBFBD>ŏ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><EFBFBD>Ȃ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>΂Ȃ<EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<tt>lfname</tt><EFBFBD><EFBFBD>LFN<EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>b<EFBFBD>t<EFBFBD>@<40>ŁA<tt>lfsize</tt><EFBFBD>͂<EFBFBD><EFBFBD>̃o<EFBFBD>b<EFBFBD>t<EFBFBD>@<40>̗v<CC97>f<EFBFBD><66><EFBFBD>ł<EFBFBD><C582>BLFN<46><4E><EFBFBD>ǂݏo<DD8F><6F><EFBFBD>K<EFBFBD>v<EFBFBD><76><EFBFBD>Ȃ<EFBFBD><C882>Ƃ<EFBFBD><C682>́A<tt>lfname</tt><EFBFBD>Ƀk<EFBFBD><EFBFBD><EFBFBD>E<EFBFBD>|<7C>C<EFBFBD><43><EFBFBD>^<5E><><EFBFBD>Z<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD>̏<EFBFBD><CC8F><EFBFBD><EFBFBD>Ɉ<EFBFBD><C988>‚ł<C282><C582>Y<EFBFBD><59><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>́ALFN<46>i<EFBFBD>[<5B>o<EFBFBD>b<EFBFBD>t<EFBFBD>@<40>Ƀk<C983><6B><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t>fname[]</tt><EFBFBD>ɉp<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂܂<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B</p>
</div>
<div class="para comp">
<h4><EFBFBD>Ή<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></h4>
<p><tt>_FS_MINIMIZE &lt;= 1</tt><EFBFBD>̂Ƃ<EFBFBD><EFBFBD>Ɏg<EFBFBD>p<EFBFBD>”\<5C>ł<EFBFBD><C582>B</p>
</div>
<div class="para use">
<h4><EFBFBD>g<EFBFBD>p<EFBFBD><EFBFBD></h4>
<pre>
FRESULT scan_files (
char* path <span class="c">/* <20>J<EFBFBD>n<EFBFBD>m<EFBFBD>[<5B>h (<28><><EFBFBD>[<5B>N<EFBFBD>G<EFBFBD><47><EFBFBD>A<EFBFBD>Ƃ<EFBFBD><C682>Ă<EFBFBD><C482>g<EFBFBD>p) */</span>
)
{
FRESULT res;
FILINFO fno;
DIR dir;
int i;
char *fn; <span class="c">/* <20><>Unicode<64>\<5C><><EFBFBD><EFBFBD><EFBFBD>z<EFBFBD><7A> */</span>
<span class="k">#if</span> _USE_LFN
static char lfn[_MAX_LFN + 1];
fno.lfname = lfn;
fno.lfsize = sizeof lfn;
<span class="k">#endif</span>
res = f_opendir(&amp;dir, path); <span class="c">/* <20>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>J<EFBFBD><4A> */</span>
if (res == FR_OK) {
i = strlen(path);
for (;;) {
res = f_readdir(&amp;dir, &amp;fno); <span class="c">/* <20>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>ڂ<EFBFBD>1<EFBFBD>“ǂݏo<DD8F><6F> */</span>
if (res != FR_OK || fno.fname[0] == 0) break; <span class="c">/* <20>G<EFBFBD><47><EFBFBD>[<5B>܂<EFBFBD><DC82>͍<EFBFBD><CD8D>ږ<EFBFBD><DA96><EFBFBD><EFBFBD>̂Ƃ<CC82><C682>͔<EFBFBD><CD94><EFBFBD><EFBFBD><EFBFBD> */</span>
if (fno.fname[0] == '.') continue; <span class="c">/* <20>h<EFBFBD>b<EFBFBD>g<EFBFBD>G<EFBFBD><47><EFBFBD>g<EFBFBD><67><EFBFBD>͖<EFBFBD><CD96><EFBFBD> */</span>
<span class="k">#if</span> _USE_LFN
fn = *fno.lfname ? fno.lfname : fno.fname;
<span class="k">#else</span>
fn = fno.fname;
<span class="k">#endif</span>
if (fno.fattrib &amp; AM_DIR) { <span class="c">/* <20>f<EFBFBD>B<EFBFBD><42><EFBFBD>N<EFBFBD>g<EFBFBD><67> */</span>
sprintf(&amp;path[i], "/%s", fn);
res = scan_files(path);
if (res != FR_OK) break;
path[i] = 0;
} else { <span class="c">/* <20>t<EFBFBD>@<40>C<EFBFBD><43> */</span>
printf("%s/%s\n", path, fn);
}
}
f_closedir(&amp;dir);
}
return res;
}
</pre>
</div>
<div class="para ref">
<h4><EFBFBD>Q<EFBFBD><EFBFBD></h4>
<p><tt><a href="opendir.html">f_opendir</a>, <a href="closedir.html">f_closedir</a>, <a href="stat.html">f_stat</a>, <a href="sfileinfo.html">FILINFO</a>, <a href="sdir.html">DIR</a></tt></p>
</div>
<p class="foot"><a href="../00index_j.html"><EFBFBD>߂<EFBFBD></a></p>
</body>
</html>