List folder contents on FTP server
dir(
lists the contents of
the current folder on the FTP server associated with ftpobj
)ftpobj
.
The contents of the current folder can be files and other folders.
The dir
function might return a structure array in which
the last four fields are empty or missing. When dir
returns
a structure with missing information, it might mean the FTP object is not
configured for the operating system that is running on the FTP server. By
default, an FTP object is configured to connect to a server running a
UNIX® operating system.
To configure an FTP object for a connection to a server running Windows®, call the ftp
function and specify the
'System','WINDOWS'
name-value pair. Then call
dir
using the new FTP object.