Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
11.2k views
in General by (160 points)
Error message: 'name.ext' : no such file or directory. (code=550)
I'm not sure what I'm doing wrong.
The source to get all directory (sample) on event click (button 1):
        '(http://www.enterprisedt.com/products/edtftpnet/doc/Tutorial/index.html)
        FtpConnection1.Connect()
        Dim files As String() = FtpConnection1.GetFiles()
        ListBox1.Items.AddRange(files)
        FtpConnection1.Close()

With this, all complete directory is set on my 'listbox1'. The problem start when
I try with 'GetLastWriteTime' with a File. NOTE: With anyone 'directory' works perfect.

        FtpConnection1.Connect()
        Dim files As String() = FtpConnection1.GetFiles("baseSyc.sql")  'ERROR!!!!!!!   
                                                                                             '-only files... No dirs
        ListBox1.Items.AddRange(files)
        FtpConnection1.Close()

What is wrong with this code?. I have:
  • IP XX.XX.227.220
  • FTP BProof Server and is installed in Win2000 PC working perfect...
  • VB Net 2005

I know that is easy. Thanks for any help....

2 Answers

0 votes
by (51.6k points)
It looks like this server will not allow you to get a directory listing for a single file. This is not really surprising since this is not in the FTP specification (RFC 959). What exactly is it that you want to achieve?

- Hans (EDT)
0 votes
by (160 points)
Mr Hans

The version I was using is 2.15 BulletProof FTP Server - 06-May-2001
and now I already installed Ver 2.3.1.26 and my code works good.
Thank you, guys!

Categories

...