IDFTP 提醒 not connected,啥原因

IDFTP 提示 not connected,啥原因
代码如下:

 try
   ftp1.connected;//--通过
   showmessage(ftp1.RetrieveCurrentDir);//--这个地方提示 not connected 报错
 except
   
 end;

什么原因哦?
------解决方案--------------------
注意Connect与connected; 前者是连接,后面是判断是否已连接上

ftp1.Connect;
if ftp1.connected then
showmessage('已连接');
else
showmessage('未连接');

------解决方案--------------------
connected是个属性,是否连接(这个你怎么访问也不会出错)  Connect是动作 去链接