MathGroup Archive 2006

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

Search the Archive

Re: FileNames subdirectory count discrepancy


Hi,

and why is "c:\\" the *first* level and not the zero one ??

Regards
   Jens

Chris Chiasson wrote:
> 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)
> 
> 
> 


  • Prev by Date: "Skip this Input cell" module?
  • Next by Date: Re: namespace collision [bug]
  • Previous by thread: Re: FileNames subdirectory count discrepancy
  • Next by thread: Re: FileNames subdirectory count discrepancy