dir and ftp

3 次查看(过去 30 天)
Chris New
Chris New 2012-2-25
Hi all,
I am trying to download a large amount of files from an ftp server, but am running into a problem. Basically, I connect to the ftp host using the ftp command, then navigate to the directory to where the data is by using cd. I then use the dir command to find the contents of the folder. I then loop through the contents of the folder, downloading the files as it goes using mget.
However, I have now hit a problem. I know the ftp folder has around 2000 files (opening the folder in an ftp program verifies this), but when I use dir, it only returns 997 objects. This means that I can only download 997 objects, because my program doesn't know what else is there.
Anyone got any ideas as to what's going on here, and why dir doesn't return the full directory list?
  1 个评论
Walter Roberson
Walter Roberson 2012-2-25
I have seen other reports of the same nature, but I have not seen a solution.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by