Skip to main content

findDirectoryFileNames.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function returns the name of files from the directory given as
% the input
%
% (string) -> (Array of string)
% returns the name of all files in the directory


function names = findDirectoryFileNames(directory)
files = dir(directory);
names = string([]);
for i=1:length(files)
if(~files(i).isdir)
names(end+1) = fullfile(directory, files(i).name);
end
end
end