isfile/isdir problem

Fredrik Lundh effbot at telia.com
Thu Mar 2 12:47:31 EST 2000


Alexander, Jason <jalexander at aivia.net> wrote:
> Basically, I'm finding that everything is returning as "Unrecognized",
> except for my current directory, and any files within it. By the way, this
> is on Win32.
>
> Any ideas on what could be causing this? Is this a bug, or am I
overlooking
> something?

yes, it's a bug in your program.  try printing
sDirName and sItem inside the loop to see
what I mean.

(hint: adding a call to os.path.join will fix this)

</F>





More information about the Python-list mailing list