Re: [Tutor] code quest

2010-11-20 Thread Alan Gauld
"Kirk Bailey" wrote OK, I need to create or find a function that will return a list of DIRECTORIES (only) which are under 'the current directory'. Anyone got some clue on this? Please advise. You can use os.walk() to get a list of directories and files and then just throw away the files...

Re: [Tutor] code quest

2010-11-20 Thread Emile van Sebille
On 11/20/2010 11:03 AM Kirk Bailey said... OK, I need to create or find a function that will return a list of DIRECTORIES (only) which are under 'the current directory'. Anyone got some clue on this? Please advise. Use os.walk Emile Help on function walk in module os: walk(top, topdown=T

[Tutor] code quest

2010-11-20 Thread Kirk Bailey
OK, I need to create or find a function that will return a list of DIRECTORIES (only) which are under 'the current directory'. Anyone got some clue on this? Please advise. -- end Very Truly yours, - Kirk Bailey, Largo Florida kniht