'Copy all sample files from disk to a temporary directory since the sample files may
be in multiple directories.'

def handle_sample_files_and_load_tool_from_disk(self, repo_files_dir, repository_id, tool_config_filepath, work_dir):

    message = ''
    sample_files = self.copy_disk_sample_files_to_dir(repo_files_dir, work_dir)
    if sample_files:
        if ('tool_data_table_conf.xml.sample' in sample_files):
            tool_data_table_config = os.path.join(work_dir, 'tool_data_table_conf.xml')
            (error, message) = self.tdtm.handle_sample_tool_data_table_conf_file(tool_data_table_config, persist=False)
    (tool, valid, message2) = self.load_tool_from_config(repository_id, tool_config_filepath)
    message = self.concat_messages(message, message2)
    return (tool, valid, message, sample_files)
