MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

FileNames subdirectory count discrepancy


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/


  • Prev by Date: Re: simple question
  • Next by Date: Re: No output or In[n] prompt appearing
  • Previous by thread: Re: Product over an arbitrary index.
  • Next by thread: Re: FileNames subdirectory count discrepancy