Re: check a directory

2008-02-25 Thread Robert Bossy
Raj kumar wrote: > Hi all, > I'm using following code... > > for x in listdir(path) > some code. > > but how i can check whether x is a directory or not? > Because listdir() is giving all the files present in that path Take a look at the module os.path, especially the functions named is

check a directory

2008-02-25 Thread Raj kumar
Hi all, I'm using following code... for x in listdir(path) some code. but how i can check whether x is a directory or not? Because listdir() is giving all the files present in that path Thanks in advance. Did you know? You can CHAT without downloading messenger. Go to http