ok
--> -->
 
 
<type 'exceptions.OSError'>
Python 2.7.5: /usr/bin/python
Wed Oct 16 04:15:21 2024

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home2/zenmagic/public_html/nzalt/test/makefolders.py in ()
     12 
     13 
=>   14 os.makedirs('newdir/newsubdir')
     15 
     16 f = open("newdir/newsubdir/newfile.txt", "w")
os = <module 'os' from '/usr/lib64/python2.7/os.pyc'>, os.makedirs = <function makedirs>
 /usr/lib64/python2.7/os.py in makedirs(name='newdir/newsubdir', mode=511)
    155         if tail == curdir:           # xxx/newdir/. exists if xxx/newdir exists
    156             return
=>  157     mkdir(name, mode)
    158 
    159 def removedirs(name):
global mkdir = <built-in function mkdir>, name = 'newdir/newsubdir', mode = 511

<type 'exceptions.OSError'>: [Errno 17] File exists: 'newdir/newsubdir'
      args = (17, 'File exists')
      errno = 17
      filename = 'newdir/newsubdir'
      message = ''
      strerror = 'File exists'