I try to list all files in a ftp dir in xbrowse
But I get for every filename only "binary" instead of the filename, MsgInfo (aFiles[1,1]) shows the correct filename
- Code: Select all Expand view
- oInternet := tInternet():New()
oFtp := tFtp():New (cIp, oInternet, cUser, cPW)
IF Empty (oFtp:hFtp)
? "Ftp failed"
ELSE
cFile := GetModuleFileName( GetInstance() )
oFtp:SetCurrentDirectory( cFolder )
aFiles := oFtp:Directory ('*.*')
aFiles := ADel (aFiles,1,.t.) // remove .
aFiles := ADel (aFiles,1,.t.) // remove ..
? Len (aFiles), aFiles [1,1] // works correct
xBrowser aF
Any hints ?