List files with specified suffix

%GETFILELIST generates a list of files with specified suffix under topDir.

You are now following this Submission

%GETFILELIST generates a list of files with specified suffix under topDir.
% This function lists files with specified suffix under topDir. It
% searches all levels of subfolders.
%
% FileList: a cell to store the list.
% topDir: top directory in which files are searched.
% suffix: type of files to search, default by AVI.
% outputFlag: a bool value to determine whether an output file is
% generated.
%
% Shiquan Wang @ CASIA
% sqwang@nlpr.ia.ac.cn/shiquanwang@gmail.com
% http://www.cbsr.ia.ac.cn/users/sqwang/
% revised on 2009/10/26

Cite As

Shiquan Wang (2026). List files with specified suffix (https://www.mathworks.com/matlabcentral/fileexchange/25610-list-files-with-specified-suffix), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

log20091026 add check for '.','..' folders instead of skipping first two folders. line78-line90

1.1.0.0

2009/10/20 fixed a bug that outputFlag is not correctly set.

1.0.0.0