Skip to content
Snippets Groups Projects
Commit c9a05b5b authored by Mark Winter's avatar Mark Winter
Browse files

Fixed directory search in SegAndTrackFolders.

parent daf28fa8
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,10 @@ if ( exist('maxProcessors','var') )
end
dlist=dir(directory_name);
bInvalidName = arrayfun(@(x)(strncmpi(x.name,'.',1) || strncmpi(x.name,'..',2)), dlist);
bValidDir = ~bInvalidName & (vertcat(dlist.isdir) > 0);
dlist = dlist(bValidDir);
for dd=1:length(dlist)
if ( ~(dlist(dd).isdir) )
......@@ -110,4 +114,4 @@ for dd=1:length(dlist)
end %dd
clear global;
end
\ No newline at end of file
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment