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