"string">'warning: '</span>, name, <span class="string">' might be index file'</span>]); 
0027 <span class="keyword">end</span>
0028 <span class="keyword">if</span> isempty(PATHSTR); <span class="comment">% interpret relative to current directory</span>
0029     name=[pwd,filesep,name]; <span class="comment">% full path, safe to use 'exist'</span>
0030 <span class="keyword">end</span>
0031 [PATHSTR,NAME,EXT]=fileparts(name); 
0032 <span class="keyword">if</span> 2==exist(name) 
0033     d=dir(name);
0034   