def METHOD_NAME(self, checked):
    chosen_dir = QFileDialog.getExistingDirectory(
        self.window(), tr("Please select the directory containing the files"), "", QFileDialog.ShowDirsOnly
    )
    if not chosen_dir:
        return
    files = []
    for path, _, dir_files in os.walk(chosen_dir):
        for filename in dir_files:
            files.append(os.path.join(path, filename))
    self.dialog_widget.create_torrent_files_list.clear()
    for filename in files:
        self.dialog_widget.create_torrent_files_list.addItem(filename)