MathGroup Archive 2006

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

Search the Archive

Re: FileNames subdirectory count discrepancy

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68731] Re: FileNames subdirectory count discrepancy
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 17 Aug 2006 04:18:38 -0400 (EDT)
  • References: <ebuk1r$6m7$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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