08-16-2013, 08:32 PM
So I've got this:
Member function Ftp.DownloadDir
Anything to make it better / more interesting?
-Jim
Member function Ftp.DownloadDir
function ~ftpDir ~localDir
ARRAY(STRINT) a
this.DirAll(F"{ftpDir}/*" a 0|4)
int i
for i 0 a.len
,str SubDir.getpath(a[i].s)
,SubDir.findreplace("/" "\")
,SubDir.trim("\")
,mkdir F"{localDir}\{SubDir}"
,this.FileGet(a[i].s F"{localDir}\{a[i].s }")Anything to make it better / more interesting?
-Jim
