Remove directories from os.listdir output

Fernando Rodríguez spamers at must.die
Sun Feb 18 06:00:35 EST 2001


Hi!

	I need to filter out all the diretories of the list returned by
os.listdir(). How can I tell if an entry of that list is a dir or a regular
file? O:-)

TIA




//-----------------------------------------------
//	Fernando Rodriguez Romero
//
//	frr at mindless dot com
//------------------------------------------------



More information about the Python-list mailing list