Problem/bug with TIdFtp.list if dir is empty
hi all,
i try to get the ftpserver directory with :
ftp.list( dirlist, '', true )
( i use '' as filespec because i only want to have the files in the
current directory, i use true because i want to identify if it is a
dircetory)
if the current working directory is empty i get an exception (ftp server
returns 550 No Files.)
I took a look at TIdFTP.InternalGet(const ACommand: string; ADest:
TStream);
there only 125 and 150 are defined as valid results. But i think "No
Files" is also a valid result. Or am i wrong?
Can anyone give me some help;
Thanks
Stefan