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: getFilesFromDirectory.m
    path of file: ./repos/Image-Harmonization-Dataset-iHarmony4/Lalonde and Efros/utils/mycode/database
    
    the code of the file until where you have to start completion: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function [files, directories] = getFilesFromDirectory(basePath, subPath, includeStrings, excludeStrings, extension, recurse)
%   Gets a list of all the files inside a directory.
% 
% Input parameters:
%   - basePath: path to the database
%   - subPath: subpath to search
%   - includeStrings: strings that must be present in the file name
%   - excludeStrings: strings that must not be present in the file name
%
% Output pa
    
function [files, directories] = getFilesFromDirectory(basePath, subPath, includeStrings, excludeStrings, extension, recurse)
%   Gets a list of all the files inside a directory.
% 
% Input parameters:
%   - basePath: path to the database
%   - subPath: subpath to search
%   - includeStrings: strings that must be present in the file name
%   - excludeStrings: strings that must not be present in the file name
%
% Output parameters:
%   - files: cell array of the filenames found in that directory.
%   - directories: cell array of corresonding directories
%
% Warning:
%   New implementation requires the command find (under linux)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [files, directories] = getFilesFromDirectory(basePath, subPath, includeStrings, excludeStrings, extension, recurse)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright 2006-2007 Jean-Francois Lalonde
% Carnegie Mellon University
% Do not distribute
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

if nargin == 1
    subPath = '.';
    includeStrings = [];
    excludeStrings = [];
    extension = '';
    recurse = 0;
end