필터 지우기
필터 지우기

mget FTP Error 500

조회 수: 1 (최근 30일)
Ryan Oates
Ryan Oates 2015년 3월 4일
Hi,
Below is my code, any reason Error 500 is popping up?
% Initial FTP Info
username = 'anonymous';
password = 'ryan.oates@hotmail.com';
host = 'prism.nacse.org';
f = ftp(host,username,password);
xx = mget(f,'/daily/ppt/1981/PRISM_ppt_stable_4kmD1_20140114_bil.zip');
If I "cd" to the exact folder where the file is located and use mget(f,filename) the same error appears.
Thanks guys!
  댓글 수: 1
John Udall
John Udall 2018년 5월 4일
편집: John Udall 2018년 5월 4일
I'm getting the same issue when following the example from the mget help file .
ngdc = ftp('ftp.ngdc.noaa.gov');
mget(ngdc, 'README.txt');
close(ngdc)
Which results in the following error
Error using ftp/mget (line 109)
FTP error: 500.
Is this a bug with mget? Are others able to get matlab FTP functions to work properly?
P.S. I'm on MATLAB R2017a

댓글을 달려면 로그인하십시오.

답변 (1개)

Seyed Mostafa Mousavi Kahaki
Seyed Mostafa Mousavi Kahaki 2019년 6월 11일
편집: Seyed Mostafa Mousavi Kahaki 2019년 6월 11일
It looks like a bug to me. I finally used "urlwrite" function and it works fine for me. I'm using MATLAB R2017a.
Something like this:
LocalFilePath = urlwrite('ftp://someaddress.org:8811/dong/retrograde/image.tif', 'image.tif');

카테고리

Help CenterFile Exchange에서 FTP File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by