function files = spm_lselect(dir,filt)
%
% usage: spm_lselect(dir,filt)
% 
% wrapper script for spm_select('list',...) which
% returns the full path names because the original 
% spm_select('list'...) only returns the filenames 
% (without paths). How annoying!
%
% ARGS:
% dir  -- directory
% filt -- regular expression for filenames
%         (see 'help regexp' for details)
% ---------------------------------------------------------
% Jan Glaescher Aug 29, 2007

files = spm_select('list',dir,filt);
dirs = repmat([spm_select('cpath',dir)],size(files,1),1);
files = strcat(dirs,filesep,deblank(files));

