dir and ftp
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Walter Roberson
el 25 de Feb. de 2012
I have seen other reports of the same nature, but I have not seen a solution.
Respuestas (0)
Ver también
Categorías
Más información sobre File Operations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!