I understand that but I'm still puzzled. Is this the reason why I can't
write files to this directory?

The xrefs directory is created the way I expect it would be using mkdir
but I can't seem to write to it. I thought that my results would be
written to the xrefs directory here but they're ending up in the
original folder not the subfolder.

          outputFile = open(os.path.join(xrefs,outputFname), 'w')
          outputFile.write(data)
          outputFile.close()

What am I missing?

[EMAIL PROTECTED] wrote:
> if (os.path.isdir(xrefs) == 0):
>      os.mkdir(xrefs)
>
> --------------------------------------------
> 
> os.path.isdir(stuff) returns 
> True or False

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to