original_docstring: Creates a staging path for installer archive. If directory exists already,
    deletes the existing directory.
    
docstring: Creates a staging path for installer archive. If directory exists already,
  deletes the existing directory.
docstring_tokens: Creates a staging path for installer archive . If directory exists already deletes the existing directory .
code: def MakeStagingDirectories(output_dir):
    """Creates a staging path for installer archive. If directory exists already,
    deletes the existing directory.
    """
    prefixed_archive_dir = (options.archive_prefix or "") + ARCHIVE_DIR
    file_path = os.path.join(output_dir, prefixed_archive_dir)
    if os.path.exists(file_path):
      shutil.rmtree(file_path)
    os.makedirs(file_path)
  
    prefixed_temp_archive_dir = (options.archive_prefix or "") + TEMP_ARCHIVE_DIR
    temp_file_path = os.path.join(output_dir, prefixed_temp_archive_dir)
    if os.path.exists(temp_file_path):
      shutil.rmtree(temp_file_path)
    os.makedirs(temp_file_path)
    return (file_path, temp_file_path)
code_tokens: def MakeStagingDirectories ( output_dir ) : prefixed_archive_dir = ( options . archive_prefix or "" ) + ARCHIVE_DIR file_path = os . path . join ( output_dir , prefixed_archive_dir ) if os . path . exists ( file_path ) : shutil . rmtree ( file_path ) os . makedirs ( file_path ) prefixed_temp_archive_dir = ( options . archive_prefix or "" ) + TEMP_ARCHIVE_DIR temp_file_path = os . path . join ( output_dir , prefixed_temp_archive_dir ) if os . path . exists ( temp_file_path ) : shutil . rmtree ( temp_file_path ) os . makedirs ( temp_file_path ) return ( file_path , temp_file_path )
short_docstring: Creates a staging path for installer archive.
short_docstring_tokens: Creates a staging path for installer archive .
comment: """Creates a staging path for installer archive. If directory exists already,
    deletes the existing directory.
    """