Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.4k views
in .NET FTP by (160 points)
Does the edFTP.NET library work with the Tandem NonStop Guardian FTP Server? Using the library I am able to connect and login fine but calling the ftpClient.Dir(".", false) or ftpClient.Dir(".", true) method does not return anything although there is one file in the current directory. If I connect to the FTP server using the command line FTP client distributed with Windows and enter the "dir" command I see the following:


200 PORT command successful.
150 Opening data connection for \THA3.$WORK.LWCINOUT. (216.195.99.43,32065d) (0
bytes).
File         Code             EOF  Last Modification    Owner  RWEP
APT957DF        0             8192 28-Aug-06 09:32:57 120,108 "ncnc"
226 Transfer complete.
ftp: 139 bytes received in 0.00Seconds 139000.00Kbytes/sec.


Any information will be highly appreciated.

3 Answers

0 votes
by (51.6k points)
I've never heard of this server. Which OS does it run on?

The reason why it doesn't work is that the format of the listing returned by the DIR command is not compatible with our parsers. To get it to work you'll have to write your own FTPFileParser. edtFTPnet currently has three parsers, Windows, Unix and VMS, so you can refer to those to see how they work. Once you've written your own parser, use the following code to tell FTPConnection to use it:
ftpConnection.FileInfoParser = new FTPFileFactory(new TandemFileParser());


- Hans (EDT)
0 votes
by (160 points)
Actually its the first time we have heard about that server as well - its hosted by one of our clients from where we need to get files via FTP. The client says its "Guardian" Operating System!

Anyway, thanks for you information regarding the custom parser - I was able to implement one and now successfully getting the files in the directory.
0 votes
by (51.6k points)
I hope you don't think I'm being rude, but is there any chance you could share the Guardian parser code with other people by posting it on the forum? Who knows - maybe someone else will have the same problem some time in the future.

- Hans (EDT)

Categories

...