You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tu.m
    path of file: ./repos/LassoADMM/Dataset1/绘制ρ对目标函数值的影响
    
    the code of the file until where you have to start completion: function [arrayResult]= tu(dirName, fileObject
    
function file_list = ScanDir(path, file_mask)
file_path =  path;  % 图像文件夹路径
img_path_list = dir(strcat(file_path, file_mask)); % 获取该文件夹中所有jpg格式的图像
% disp(img_path_list);
img_num = length(img_path_list);    % 获取图像总数量
file_list = cell(img_num, 1);
if img_num > 0 %有满足条件的图像
    for j = 1:img_num %逐一读取图像
        image_name = img_path_list(j).name;% 图像名
%         fprintf('当前找到指定的文件 %s\n', strcat(file_path,image_name));% 显示扫描到的图像路径名
        file_list{j} = image_name;
    end