_FTP_FileFindFirst gibt keine Rückmeldung

  • Moin Leutz :)
    hab da so ein kleines Problem und dachte ihr könntet mir hier weiterhelfen. Und zwar gibt die Funktion _FTP_FileFindFirst sowie _FTP_FileFindNext keine Rückmeldung. Weder Fehler noch sonstiges. Hat einer ne Ahnung was da los ist?

    [autoit]


    #include <FTPEx.au3>
    Dim $FirstFile
    $IP = "censored"
    $Port = 2211
    $Name = "censored"
    $PW = "censored"
    $FTPOpen = _FTP_Open("FTP")
    $FTPConnect = _FTP_Connect($FTPOpen,$IP,$Name,$PW,0,$Port)
    $FirstFile = _FTP_FindFileFirst($FTPConnect,"/*.*",$FirstFile)
    MsgBox(0,"",$FirstFile)
    _FTP_FindFileClose($FirstFile)
    _FTP_Close($FTPConnect)

    [/autoit]

    Danke schonmal im Vorraus.

  • _FTP_FindFileFirst gibt ein Array zurück. Hilfe lesen grüßt.

    Probier mal:

    [autoit]

    #include <Array.au3>
    #include <FTPEx.au3>

    [/autoit][autoit][/autoit][autoit]

    Local $aFirstFile, $hFileNext
    Local $sIP = "censored", _
    $sPort = "2211", _
    $sName = "censored", _
    $sPW = "censored"

    [/autoit][autoit][/autoit][autoit]

    $hFTP = _FTP_Open("FTP")
    $hSession = _FTP_Connect($hFTP, $sIP, $sName, $sPW, 0, $sPort)
    $aFirstFile = _FTP_FindFileFirst($hSession, "/", $hFileNext)

    [/autoit][autoit][/autoit][autoit]

    If IsArray($aFirstFile) Then
    _ArrayDisplay($aFirstFile)
    Else
    MsgBox(0, "FTP", "...")
    EndIf

    [/autoit][autoit][/autoit][autoit]

    _FTP_FindFileClose($aFirstFile)
    _FTP_Close($hFTP)

    [/autoit]

    There's a joke that C has the speed and efficieny of assembly language combined with readability of....assembly language. In other words, it's just a glorified assembly language. - Teh Interwebz

    C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, you blow off your whole leg. - Bjarne Stroustrup
    Genie zu sein, bedeutet für mich, alles zu tun, was ich will. - Klaus Kinski

  • Mit Array hab ichs auch schon probiert und es gibt dann zurück dass das Array keinen Wert hat. Außerdem sollte es auch ohne Array funktionieren...