How to download multiple folders using mget?
4 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
采纳的回答
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.