Re: directory listing

2005-11-11 Thread Michael Konrad
Sorry about that, I guess send was working. Michael Konrad wrote: > > This is what I decided on for a solution. I haven't tested it > cross-platform yet. > > import os > > def dirListing(directory='/Users/mkonrad'): > """

Re: directory listing

2005-11-11 Thread Michael Konrad
This is what I decided on for a solution. I haven't tested it cross-platform yet. import os def dirListing(directory='/Users/mkonrad'): """Returns a list of directories.""" #variables dirs = [] #list of directories

Re: directory listing

2005-11-11 Thread Michael Konrad
This is what I decided on for a solution. I haven't tested it cross-platform yet. import os def dirListing(directory='/Users/mkonrad'): """Returns a list of directories.""" #variables dirs = [] #list of directories

Re: directory listing

2005-11-11 Thread Michael Konrad
Richard Townsend <[EMAIL PROTECTED]> wrote: > On 11 Nov 2005 21:20:33 GMT, SU News Server wrote: > > Try passing the full pathname of each item to os.path.isdir() > > You can create the pathname using os.path.join(directory, x) > > > I wonder if I can join ./, so I don't have the full path

Re: directory listing

2005-11-11 Thread Michael Konrad
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > "SU News Server" <[EMAIL PROTECTED]> wrote: > >> I've struggled with this for quite a while and I'm am just not sure >> what is going on. I have the following code >> import os >> >> def buildList( directory='/Users/mkonrad' ) >> >> dirs = [ ] >> >> l