def METHOD_NAME(self, playlist):
    pattern_text = CONFIG.default_pattern
    dialog = ExportToFolderDialog(self.plugin_window, pattern_text)
    if dialog.run() == Gtk.ResponseType.OK:
        directory = dialog.directory_chooser.get_filename()
        pattern = FileFromPattern(dialog.pattern_entry.get_text())
        task = Task("Export", _("Export Playlist to Folder"),
                    stop=self.__cancel_copy)
        copool.add(self.__copy_songs, task,
                   playlist.songs, directory, pattern, self.plugin_window,
                   funcid="export-playlist-folder")
    dialog.destroy()