Welcome to the Xceed Community Sign in | Join | Help
Community Search  

[FTP] - GetFoldersContents

Sort Posts: Previous Next
  •  03-30-2007, 8:10 AM Post no. 6069

    [FTP] - GetFoldersContents

    Hello,

    I use the FTP component v3.3 on the framework 2.0
    i create a fileSizeInfos function, and for this i use
    GetFoldersContents(name of file) for retrieve a fileinfoitem
    but if my filename start with the char '-' the function GetFoldersContents retrieve all contents of folder !!

    Have you a idea on this problem ?

    thanxs a lot

    bye
  •  03-30-2007, 1:45 PM Post no. 6070 in reply to 6069

    Re: [FTP] - GetFoldersContents

    Not all ftp servers react the same way to some ftp commands. Our list is generated from a standard ftp command like ls for example. We expose what the server returns. The first thing to do would be to show us the logfile.

    In order to obtain the log file with Xceed Ftp for .NET you need to set the tracewriter property :

    ftpClient.TraceWriter = new StreamWriter("path of your log\log.txt")

    Please send this information at support@xceedsoft.com so we can get a better idea of the issue.
    Mathieu Drimonakos
    -Technical Designer-
  •  04-02-2007, 7:45 AM Post no. 6071 in reply to 6070

    Re: [FTP] - GetFoldersContents

    Hello,
    I try and send it ASAP.
    Thanxs
  •  04-02-2007, 8:35 AM Post no. 6072 in reply to 6071

    Re: [FTP] - GetFoldersContents

    Hi,
    the tracewriter is here :
    Connected to 127.0.0.1:21 on 02/04/2007 @ 14:23:21
    < 220-FileZilla Server version 0.9.23 beta
    < 220-written by Tim Kosse (Tim.Kosse@gmx.de)
    < 220 Please visit http://sourceforge.net/projects/filezilla/
    > AUTH SSL
    < 234 Using authentication type SSL
    > PBSZ 0
    < 200 PBSZ=0
    > PROT C
    < 200 Protection level set to C
    > USER test
    < 331 Password required for test
    > PASS *****
    < 230 Logged on
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (127,0,0,1,10,89)
    > LIST
    Data connection established with 127.0.0.1:2649 on 02/04/2007 @ 14:23:22
    < 150 Connection accepted
    < 226 Transfer OK
    > TYPE A
    < 200 Type set to A
    > PASV
    < 227 Entering Passive Mode (127,0,0,1,10,91)
    > LIST -PhotoStore.zip
    Data connection established with 127.0.0.1:2651 on 02/04/2007 @ 14:23:29
    < 150 Connection accepted
    < 226 Transfer OK
    > QUIT
    < 221 Goodbye
    Disconnected from 127.0.0.1:21 on 02/04/2007 @ 14:24:36

    nothing special, but the fonction getFoldersContents with "-PhotoStore.zip" returns 17 items and not one.

    Do you have a idea ?

    Thanxs.
  •  04-03-2007, 1:35 PM Post no. 6073 in reply to 6072

    Re: [FTP] - GetFoldersContents

    The problem is with the server. It does not react properly to the "-" character.

    The library only parses the list that is returned by the server, it does not filter it. It is the server that does the filtering, and returns the list accordingly to the filter.

    As a workaround, you will need to filter the list manually after receiving it from the server.
    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  04-04-2007, 4:04 AM Post no. 6074 in reply to 6073

    Re: [FTP] - GetFoldersContents

    ok, thanxs a lot for your help
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.