dir and ftp

5 vues (au cours des 30 derniers jours)
Chris New
Chris New le 25 Fév 2012
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 commentaire
Walter Roberson
Walter Roberson le 25 Fév 2012
I have seen other reports of the same nature, but I have not seen a solution.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by