For i = 1 to 100 'don't worry why, it's just for testing
Dim sf As Object = FTP.DownloadFile(SourceFile False, PathSettings, TargetFile)
Wait For (sf) FTP_DownloadCompleted (ServerPath As String, Success As Boolean)
If Success Then
Log("file was downloaded successfully")
Else
Log("Error uploading file")
End If
Next
FTP.List("/")