parameters: (name, clean=1)
docstring: Create a clean (ie. empty) directory.
  
      name is the name of the directory.
docstring_summary: Create a clean (ie. empty) directory.
docstring_tokens: Create a clean ( ie . empty ) directory .
function: def mk_clean_dir(name, clean=1):
      """Create a clean (ie. empty) directory.
  
      name is the name of the directory.
      """
      if clean:
          try:
              shutil.rmtree(name)
          except:
              pass
  
      try:
          os.makedirs(name)
      except:
          if clean:
              sipconfig.error("Unable to create the %s directory." % name)
function_tokens: def mk_clean_dir ( name , clean = 1 ) : if clean : try : shutil . rmtree ( name ) except : pass try : os . makedirs ( name ) except : if clean : sipconfig . error ( "Unable to create the %s directory." % name )