On 10 Apr, 11:55, Soren <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'd like to read the filenames in a directory, but not the
> subdirectories, os.listdir() gives me everything... how do I separate
> the directory names from the filenames? Is there another way of doing
> this?
>
> Thanks!

I guess you have no other way than using os.path.isfile or
os.path.isdir for every entry returned by os.listdir.


--- Giampaolo
http://code.google.com/p/pyftpdlib
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to