def mkdirall(path):
 for ancestor in ancestry(path):
  if (not os.path.isdir(syspath(ancestor))):
   try:
    os.mkdir(syspath(ancestor))
   except (OSError, IOError) as exc:
    raise FilesystemError(exc, 'create', (ancestor,), traceback.format_exc())

def mkdirall ( path ) : for ancestor in ancestry ( path ) : if ( not os . path . isdir ( syspath ( ancestor ) ) ) : try : os . mkdir ( syspath ( ancestor ) ) except ( OSError , IOError ) as exc : raise FilesystemError ( exc , 'create' , ( ancestor , ) , traceback . format_exc ( ) )
make all the enclosing directories of path .