フィルターのクリア

How to download multiple folders using mget?

6 ビュー (過去 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 Center および File ExchangeFTP File Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by