FTP 文件操作
访问 FTP 服务器上的文件
使用 ftp
连接到 FTP 服务器,然后执行远程操作,如下载文件或管理文件夹。
函数
ftp | 连接到 FTP 服务器以访问其文件 |
sftp | Connection to SFTP server to access its files (自 R2021b 起) |
ascii | 将 FTP 传输模式设置为 ASCII |
binary | 将 FTP 传输模式设置为二进制 |
cd | 更改或查看 SFTP 或 FTP 服务器上的当前文件夹 |
close | 关闭与 SFTP 或 FTP 服务器的连接 |
delete | 删除 SFTP 或 FTP 服务器上的文件 |
dir | 列出 SFTP 或 FTP 服务器上的文件夹内容 |
mget | 从 SFTP 或 FTP 服务器下载文件 |
mkdir | 在 SFTP 或 FTP 服务器上创建新文件夹 |
mput | 将文件或文件夹上传到 SFTP 或 FTP 服务器 |
rename | 重命名 SFTP 或 FTP 服务器上的文件 |
rmdir | 删除 SFTP 或 FTP 服务器上的文件夹 |
主题
- 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.