How can I get the names of the files in a directory?

2005-01-15 Thread Sara Fwd
Can you guys also help me find a module that looks in
a directory and print out the names of the files in there?



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How can I get the names of the files in a directory?

2005-01-15 Thread Satchidanand Haridas
Hi,
try the 'listdir' function in the 'os' module. Also check the 'walk' 
function.

regards,
Satchit

Satchidanand Haridas (sharidas at zeomega dot com)
ZeOmega (www.zeomega.com)
Open  Minds' Open Solutions
#20,Rajalakshmi Plaza,
South End Road,
Basavanagudi,
Bangalore-560 004, India

Sara Fwd wrote:
Can you guys also help me find a module that looks in
a directory and print out the names of the files in there?
		
__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
 

--
http://mail.python.org/mailman/listinfo/python-list


Re: How can I get the names of the files in a directory?

2005-01-15 Thread Jaco Smuts

have a look at the glob module







Sara Fwd [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
01/15/2005 03:10 PM




To
python-list@python.org


cc



Subject
How can I get the names of the files
in a directory?








Can you guys also help me find a module that looks
in
a directory and print out the names of the files in there?




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
-- 
http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list