Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FTP Directory
#2
So I've got this:
Member function Ftp.DownloadDir
Code:
Copy      Help
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)