%% Parse LIST Command Output
% First, connect to the National Centers for Environmental Information (NCEI) FTP server.

ftpobj = ftp('ftp.ngdc.noaa.gov')

% List the contents of the current folder on the server. Assign the output struct to the variable a.

a = dir(ftpobj)

% Parse the raw output of the LIST command. Assign the output string to the variable b.

b = dir(ftpobj,"ParseOutput",false)

% Copyright 2020 The MathWorks, Inc.