Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FTP Directory
#1
What is the most efficient way to use FTP to save a local copy of all the files in a directory and sub-directories?

-Jim
#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
#3
Perfect.
#4
Quote:Post by Gintaras on 16 Aug 2013, 22:50
Perfect..

Sweet ;-)


Forum Jump:


Users browsing this thread: 1 Guest(s)