FTP Server connection - Error 500

조회 수: 1 (최근 30일)
Vanessa
Vanessa 2018년 1월 9일
Hello everyone,
I'm trying to connect to a FTP Server. Below is the code
myFTP = ftp('host','user','pass');
cd(myFTP,'CUCM_CDR');
mget(myFTP,'vez.txt','C:\Users\vez\Desktop\CIS');
The connection is succesfull but the mget fails. The file is copied to the target folder but it's empty. The error I get is
Error using ftp/mget (line 109) FTP error: 500.
  댓글 수: 2
Vanessa
Vanessa 2018년 1월 9일
Is there a way to overcome this problem?
Wuyang Chen
Wuyang Chen 2019년 5월 7일
I have this prooblem too..

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

답변 (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