Skip to content

Commit

Permalink
Fix code issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Oct 25, 2024
1 parent 42ac4f1 commit cbaba98
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions code/internal/+openminds/+internal/+utility/+dir/listFiles.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@
filePathCellArray = {filePathCellArray};
end

L = [];
L = cell(1, numel(filePathCellArray));

for i = 1:numel(filePathCellArray)

thisL = dir(filePathCellArray{i});
thisL = thisL(~[thisL.isdir]);

if isempty(L)
L = thisL;
else
L = [L; thisL];
end
L{i} = thisL;
end
L = cat(1, L{:});

if isempty(L)
return
Expand Down

0 comments on commit cbaba98

Please sign in to comment.