dir and ftp
显示 更早的评论
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
2012-2-25
I have seen other reports of the same nature, but I have not seen a solution.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!