LS as directory List

Feb 7, 2014 at 5:26 PM
I am trying to work with an FTP site on an ALPHA computer running OpenVMS (v 8.2) and am running into issues.

The server only takes "LS" as a command for directory list and has a directory structure common to VMS (It uses dots instead of / for directories).

The files I need are in $1$DGA16:[000000.DAPROD.CLIENT.SEB.CMD]

Looking at the source code I am wondering if there is an option I can use to us LS for directory listing instead of LIST or NLST?

I do not see one.

Jordan
Coordinator
Feb 8, 2014 at 1:23 AM
Sorry for the late response. There is no way to use ls as the command. I will look into adding an option. As as far as the semantics of the file paths on VMS, that exceeds what I'm willing to support (I have no way to develop and test against said systems). It has been asked before and the support in this code is rudimentary at best with regards to VMS. Any how, I'll post back here when I have a solution for using ls as the command for listing directories.
Coordinator
Feb 8, 2014 at 1:32 AM
Edited Feb 8, 2014 at 1:33 AM
Alright, the latest revision adds the flag FtpListOption.UseLS which implies FtpListOption.ForceList and causes GetListing() to use "LS" instead of "LIST" to retrieve the directory listing. I haven't tested this feature at all.
Coordinator
Feb 8, 2014 at 1:38 AM
If you could post the server software and the FEAT response from the ftp transaction log (see the Debug.cs example). I'd just like to take a look at it to see what the server advertises as features and if there might be a better solution.
Feb 8, 2014 at 2:08 AM
Edited Feb 8, 2014 at 2:09 AM
This is what I see in the debug log.
230 User logged in.
FEAT
502 FEAT is unimplemented.
Text encoding: System.Text.ASCIIEncoding
CWD $1$DGA16:[000000.DAPROD.CLIENT.SEB.CMD]
250-CWD command successful.
250 New default directory is $1$DGA16:[000000.DAPROD.CLIENT.SEB.CMD]
PWD
257 "$1$DGA16:[000000.DAPROD.CLIENT.SEB.CMD]" is current directory.
PWD
257 "$1$DGA16:[000000.DAPROD.CLIENT.SEB.CMD]" is current directory.
TYPE I
200 TYPE set to IMAGE.
EPSV
229 Entering Extended Passive Mode (|||51824|)
LIST $1$DGA16:[000000.DAPROD.CLIENT.SEB.CMD]/.
550 file specification syntax error
Disposing FtpClient object...
QUIT
221 Goodbye.
Disposing FtpSocketStream...
Disposing FtpSocketStream...
Feb 8, 2014 at 2:11 AM
jptrosclair wrote:
Alright, the latest revision adds the flag FtpListOption.UseLS which implies FtpListOption.ForceList and causes GetListing() to use "LS" instead of "LIST" to retrieve the directory listing. I haven't tested this feature at all.
I'll download and test it out when the new revision is available
Coordinator
Feb 8, 2014 at 2:26 AM
It's up under the source tab.

Sent from my iPhone

Feb 10, 2014 at 1:51 PM
I'm testing it out today.

Thanks for the fast response. I'll let you know what happens.
Feb 10, 2014 at 2:50 PM
Edited Feb 10, 2014 at 2:50 PM
Our ALPHA still is not happy. This didn't solve the problem. I'm going to look for another library and see if I can find one to work with OpenVMS.

Once again, thanks for your quick response!

-J