wxPython FileDialog, select folder

Tim Roberts timr at probo.com
Sun Dec 23 01:30:28 EST 2007


SMALLp <pofuk at email.t-com.hr> wrote:
>
>Thanks! I've already figured it out from first reply. Now i get selected 
>directory and i want to get all directories from thin directory. I found 
>os.listdir but it oly gets names of files and i nedd output with 
>permisions e.g. -rw-r--r--  1 pofuk pofuk  105 2007-12-19 21:59 login.py

Do you want to KNOW the permissions, or do you really want to get the
output of "ls -l"?  

What you probably want is os.walk.  You can call stat or os.path.isdir to
get information about the files you discover.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list