diff --git a/MOcov/mocov_find_files.m b/MOcov/mocov_find_files.m index 36122bd..09cf1a0 100644 --- a/MOcov/mocov_find_files.m +++ b/MOcov/mocov_find_files.m @@ -89,7 +89,7 @@ if ~isempty(regexp(fn,exclude_re,'once')); continue; elseif isdir(path_fn) - res=find_files_recursively(path_fn,file_re,monitor); + res=find_files_recursively(path_fn,file_re,monitor,exclude_re); elseif ~isempty(regexp(fn,file_re,'once')); res={path_fn}; if ~isempty(monitor) @@ -100,4 +100,4 @@ res_cell{k}=res; end - res=cat(1,res_cell{:}); \ No newline at end of file + res=cat(1,res_cell{:});