How to download multiple folders using mget?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mario
am 9 Feb. 2020
Kommentiert: Walter Roberson
am 10 Feb. 2020
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 9 Feb. 2020
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 Kommentare
Walter Roberson
am 10 Feb. 2020
The only thing that I see is that you spelt Forlder instead of Folder
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu FTP File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!