Jump to content

_FTP_ListToArrayEx broken in beta?


Recommended Posts

This code works fine in 3.3.6.1 but fails with beta 3.3.7.14

#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")
    Exit
EndIf
$Conn = _FTP_Connect($Open, $server, $user, $pw)
If @error Then
    _FTP_Close($Open)
    MsgBox(0, "", "Can't connect to " & $server)
    Exit
EndIf
_FTP_DirSetCurrent($Conn, $remote_dir)
If @error Then
    _FTP_Close($Open)
    MsgBox(0, "", "Can't set remote directory on " & $server)
    Exit
EndIf

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

_ArrayDisplay($aFile) ; <------------ Works OK in 3.3.6.1, 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?

UPDATE

This can be tested by anyone with the following server:

$server = "ftp.mozilla.org"

$user = ""

$pw = ""

$remote_dir = "/pub/webtools/"

post-40658-0-90799400-1311349470_thumb.j

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
 Share

  • Recently Browsing   0 members

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