VelvetElvis Posted July 22, 2011 Posted July 22, 2011 (edited) 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/" Edited July 22, 2011 by VelvetElvis
JohnOne Posted July 23, 2011 Posted July 23, 2011 http://www.autoitscript.com/trac/autoit/ticket/1970 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
VelvetElvis Posted July 24, 2011 Author Posted July 24, 2011 http://www.autoitscript.com/trac/autoit/ticket/1970Great! Thank you for pointing that out.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now