Jump to content

_FTP_ListToArrayEx broken in beta?

Recommended Posts

This code works fine in but fails with beta

#include <array.au3>
#include <FTPEx.au3>

$server = "ctweb02"
$user = "nac2"
$pw = "nac2004"
$remote_dir = "/Promos/files/updateArchive/test/"

; Open FTP connection and connect to FTP server
$Open = _FTP_Open("FTP_connection")
If @error Then
    MsgBox(0, "", "Can't establish FTP connection")
$Conn = _FTP_Connect($Open, $server, $user, $pw)
If @error Then
    MsgBox(0, "", "Can't connect to " & $server)
_FTP_DirSetCurrent($Conn, $remote_dir)
If @error Then
    MsgBox(0, "", "Can't set remote directory on " & $server)

; Store FTP folder contents to array
$aFile = _FTP_ListToArrayEx($Conn, 2, 0, 1)

_ArrayDisplay($aFile) ; <------------ Works OK in, fails in beta

I've attached the _ArrayDisplay results. Is this a real bug, or a feature of the beta that I'm unaware of?


This can be tested by anyone with the following server:

$server = "ftp.mozilla.org"

$user = ""

$pw = ""

$remote_dir = "/pub/webtools/"


Edited by VelvetElvis
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...