def create_temp_dir():
 complete_dir = get_temp_dir()
 if (not os.path.exists(complete_dir)):
  try:
   os.makedirs(complete_dir)
  except OSError as ose:
   if (ose.errno != errno.EEXIST):
    raise
  os.chmod(complete_dir, stat.S_IRWXU)
 return complete_dir

def create_temp_dir ( ) : complete_dir = get_temp_dir ( ) if ( not os . path . exists ( complete_dir ) ) : try : os . makedirs ( complete_dir ) except OSError as ose : if ( ose . errno != errno . EEXIST ) : raise os . chmod ( complete_dir , stat . S_IRWXU ) return complete_dir
create the temp directory for w3af to work inside .