필터 지우기
필터 지우기

How to download multiple folders using mget?

조회 수: 5 (최근 30일)
Mario
Mario 2020년 2월 9일
댓글: Walter Roberson 2020년 2월 10일
Hi,
Wondering if it is possible to use mget to download multiple folders?, where each folder has multiple files.
Here is my attempt...
clc, clear
username = 'xxx';
password = 'xxx';
ftpobj = ftp('ftp.blablabla',username,password);
cd(ftpobj, '/Forlder3/Forlder2/Forlder1');
dir(ftpobj)
mget(ftpobj,'C:\MyFolder');
% I believe to help with query...
hs = struct(ftpobj);
hs.jobject.setConnectionTimeout(50);
Thanks!

채택된 답변

Walter Roberson
Walter Roberson 2020년 2월 9일
Wondering if it is possible to use mget to download multiple folders?
You can use a wildcard with the list of things to get. If what you specify happens to match multiple folders, then they will be retrieved.
  댓글 수: 6
Mario
Mario 2020년 2월 10일
yes. thanks!
Walter Roberson
Walter Roberson 2020년 2월 10일
The only thing that I see is that you spelt Forlder instead of Folder

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 FTP File Operations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by