Home Forums .NET libraries Xceed SFTP/FTP for .NET CWD behaviour in Xceed FTP for .NET

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20927 |

    Hello all,

    while using Xceed FTP for .NET (3.6) to download a file from a proprietary FTP server I get an error because the library tries to change the directory before starting the transfer:
    <hr>
    > CWD /
    < 550 XCWD valid format required.
    <hr>

    Problem is, the server has no real directories – and therefore can’t cope with the CWD.

    Is there any way I can surpress the CWD command with the Xceed FTP library?

    Thanks in advance.

    Björn

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Björn (had 3956 views)

    Xceed Support
    Member
    Post count: 5658

    If you are using the FileSystem (with FtpConnection), there is no way to prevent this command to be called. The FileSystem calls Do Exists on every folder (starting from the root) to the requested folder to make sure they exist.

    With FtpClient, CWD is only going to be called if you need to “Change the working directory”.
    <a href=”http://doc.xceedsoft.com/products/XceedFileSystem/FTPComponent_FTP_commands.html”>http://doc.xceedsoft.com/products/XceedFileSystem/FTPComponent_FTP_commands.html</a&gt;

    However, a FTP server should implement CWD to respect the FTP Protocol.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by CharlesB (had 187 views)

    User (Old forums)
    Member
    Post count: 23064

    Thx for the advice, I got it running with FtpClient now.

    > However, a FTP server should implement CWD to respect the FTP Protocol.

    It’s not the server, it’s the filesystem. HP Himalaya (“Tandem”). It doesn’t have any directories (at least not in the way most people understand directories).

    If FtpConnection could be configured to avoid the CWD, one could use it with that OS, too.

    Cheers, Björn

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Björn (had 377 views)

    Xceed Support
    Member
    Post count: 5658

    We will take that into consideration.

    On the other hand, the FileSystem needs to be able to know if each directory (in a certain path) exists; that is why it needs to call CWD.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by CharlesB (had 4640 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.