Why do I receive Error in matlab.io.FTP/dir>case12Parse ?
Afficher commentaires plus anciens
I have the following script for downloading data using ftp.
rm_dir = 'rx_data/station_name/year/month/day_of_year';
rm_file = 'COCO0010.22o';
ftpobj = ftp(host,username,password);
cd (ftpobj,rm_dir);
mget(ftpobj,rm_file);
But I receive an error as follows.
Error using matlab.io.ftp.parseDirListingForWindows
Unable to parse dir output from the remote server.
Use 'ParseOutput' false to get the dir output as a string,or provide a custom parsing function using the 'DirParserFcn' Name-Value pair,
or set the ServerLocale property to the correct locale.
Error in matlab.io.FTP/dir>case12Parse (line 170)
listing = parseDirListingForWindows(listing, 1, namesOnly, ...
Error in matlab.io.FTP/dir (line 72)
varargout{1} = case12Parse(obj, options, listing, ...
Error in matlab.io.FTP/mget (line 39)
[dirStruct, folderOrFile] = dir(obj, str);
Error in ftp_download (line 11)
mget(ftpobj,rm_file)
How can I resolve this ?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur FTP File Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!