Documentation

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

mget

Class: FTP

Download files from FTP server

Syntax

mget(ftpobj,contents)
mget(ftpobj,contents,target)

Description

mget(ftpobj,contents) retrieves the file or folder specified by contents from an FTP server into the MATLAB® current folder.

mget(ftpobj,contents,target) retrieves the file or folder into the local folder specified by target, which includes an absolute or relative path.

Input Arguments

ftpobj

FTP object created by ftp.

contents

String enclosed in single quotation marks that specifies either a file name or a folder name. Can include a wildcard character (*).

target

String enclosed in single quotation marks that specifies the absolute or relative path of the local folder to contain the downloaded contents.

Examples

Connect to an FTP server and retrieve the file README into the current MATLAB folder:

mw = ftp('ftp.mathworks.com');
mget(mw, 'README');
close(mw);

See Also

| |

Introduced before R2006a

Was this topic helpful?