noobie mkdir problem/question

ProvoWallis gshepherd281281 at yahoo.com
Sat Mar 25 19:18:13 EST 2006


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?

jordan.taylor2 at gmail.com wrote:
> if (os.path.isdir(xrefs) == 0):
>      os.mkdir(xrefs)
>
> --------------------------------------------
> 
> os.path.isdir(stuff) returns 
> True or False




More information about the Python-list mailing list