Azzera filtri
Azzera filtri

FTP Server connection - Error 500

1 visualizzazione (ultimi 30 giorni)
Vanessa
Vanessa il 9 Gen 2018
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 Commenti
Vanessa
Vanessa il 9 Gen 2018
Is there a way to overcome this problem?
Wuyang Chen
Wuyang Chen il 7 Mag 2019
I have this prooblem too..

Accedi per commentare.

Risposte (1)

Seyed Mostafa Mousavi Kahaki
Modificato: Seyed Mostafa Mousavi Kahaki il 11 Giu 2019
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');

Community Treasure Hunt

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

Start Hunting!

Translated by