Main Content

FTP File Operations

Access files on FTP server

Connect to an FTP server using ftp, and then perform remote operations such as downloading files or managing folders.

Functions

ftpConnection to FTP server to access its files
sftpConnection to SFTP server to access its files (Since R2021b)
asciiSet FTP transfer mode to ASCII
binarySet FTP transfer mode to binary
cdChange or view current folder on SFTP or FTP server
closeClose connection to SFTP or FTP server
deleteDelete file on SFTP or FTP server
dirList folder contents on SFTP or FTP server
mgetDownload files from SFTP or FTP server
mkdirMake new folder on SFTP or FTP server
mputUpload file or folder to SFTP or FTP server
renameRename file on SFTP or FTP server
rmdirRemove folder on SFTP or FTP server

Topics

  • Perform FTP File Operations

    Connect to an FTP server and perform remote operations such as downloading and uploading files, creating and deleting folders, and listing contents on the server.