FileNames subdirectory count discrepancy
- To: mathgroup at smc.vnet.net
- Subject: [mg68689] FileNames subdirectory count discrepancy
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Wed, 16 Aug 2006 03:36:20 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
from the help:
FileNames[forms, dirs, n] includes files that are in subdirectories up
to n levels down.
why does a file that is only one level down require n=2?
In[1]:=
FileNames["system.ini",{"C:\\"},1]
Out[1]=
{}
In[2]:=
FileNames["system.ini",{"C:\\"},2]
Out[2]=
{C:\WINDOWS\system.ini}
In[3]:=
$Version
Out[3]=
5.2 for Microsoft Windows (June 20, 2005)
--
http://chris.chiasson.name/