<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265215</link>
    <title>MATLAB Central Newsreader - dir find no files ?</title>
    <description>Feed for thread: dir find no files ?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 07 Nov 2009 01:29:04 -0500</pubDate>
      <title>dir find no files ?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265215#692833</link>
      <author>Xiao LI</author>
      <description>I used the function &quot;dir&quot; to get all the file names within a certain directory in a loop.&lt;br&gt;
The directory is changing in the loop, but the files in each directory are same. What is weird is that the &quot;dir&quot; find no files in one of the directories while acturally there are several files in it. Then I check the directory independently(not in a loop) and the &quot;dir&quot; find those files. I don't know why. The memory full ?</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 23:53:16 -0500</pubDate>
      <title>Re: dir find no files ?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265215#693103</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Xiao LI&quot; &amp;lt;clz1978@163.com&amp;gt; wrote in message &lt;br&gt;
news:hd2ih0$47i$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I used the function &quot;dir&quot; to get all the file names within a certain &lt;br&gt;
&amp;gt;directory in a loop.&lt;br&gt;
&amp;gt; The directory is changing in the loop, but the files in each directory are &lt;br&gt;
&amp;gt; same. What is weird is that the &quot;dir&quot; find no files in one of the &lt;br&gt;
&amp;gt; directories while acturally there are several files in it. Then I check &lt;br&gt;
&amp;gt; the directory independently(not in a loop) and the &quot;dir&quot; find those files. &lt;br&gt;
&amp;gt; I don't know why. The memory full ?&lt;br&gt;
&lt;br&gt;
Impossible to say.  How, specifically do you call DIR?  Are you certain that &lt;br&gt;
the way you're actually calling it is the way you think you're calling it? &lt;br&gt;
For example, there's a difference between:&lt;br&gt;
&lt;br&gt;
D = dir('abc*')&lt;br&gt;
&lt;br&gt;
and&lt;br&gt;
&lt;br&gt;
D = dir('abc')&lt;br&gt;
&lt;br&gt;
Are you sure you're calling DIR in the correct directory?  Being one level &lt;br&gt;
higher or lower in a directory structure can make a huge difference on what &lt;br&gt;
DIR can 'see'.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
comp.soft-sys.matlab (CSSM) FAQ: &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt; </description>
    </item>
  </channel>
</rss>

