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: cfg_run_file_move.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8/matlabbatch/cfg_basicio
    
    the code of the file until where you have to start completion: function out = cfg_run_file_move(job)

% Move files to another directory or delete them, if no directory is
% specified. Special treatment to move .img/.hdr/.mat pairs of files

    
function out = cfg_run_file_move(job)

% Move files to another directory or delete them, if no directory is
% specified. Special treatment to move .img/.hdr/.mat pairs of files
% together.
%
% This code is part of a batch job configuration system for MATLAB. See
%      help matlabbatch
% for a general overview.
%_______________________________________________________________________
% Copyright (C) 2007 Freiburg Brain Imaging

% Volkmar Glauche
% $Id: cfg_run_file_move.m 4102 2010-10-28 10:47:15Z volkmar $

rev = '$Rev: 4102 $'; %#ok

action = fieldnames(job.action);
action = action{1};
if strcmp(action, 'delete')
    todelete = {};
    for k = 1:numel(job.files)
        [p n e] = fileparts(job.files{k});
        if numel(e)>=4 && any(strcmp(e(1:4), {'.nii','.img'}))
            try
                [p n e v] = spm_fileparts(job.files{k});
                todelete{end