Hi,
You should change your line :
count = count + slocdir(strcat(directoryPath,'//',list(i).name));
by :
count = count + slocdir(fullfile(directoryPath,list(i).name));
in order your script being portable over non-windows machines...
Thanks for the file.
François.
Comment only
05 May 2009
slocdir
Go recursively into folders to count the .m lines of code
BugWarning :
at line :
warning( strcmp( list(i).name,'file or folder skipped') );
replace by :
warning( strcat( list(i).name,'file or folder skipped') );
it STRCAT not STRCMP
Comment only