[EMAIL PROTECTED] wrote:
> I have the following code which list out all the files/directories
> under the current directory.
> 
> But how can I find out if 'f' is a directory?
> 
> for f in os.listdir("."):
>      // how can I check if 'f' a directory?
> 

Try os.path.isdir()

-- 
----------------------------------------------------------------------------
Tim Daneliuk     [EMAIL PROTECTED]
PGP Key:         http://www.tundraware.com/PGP/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to