MathGroup Archive 2006

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

Search the Archive

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/


  • 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