Why do I receive Error in matlab.io.FTP/dir>case12Parse ?
Show older comments
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 ?
Accepted Answer
More Answers (0)
Categories
Find more on FTP File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!