Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6k views
in .NET FTP by (162k points)
A user writes:

I

9 Answers

0 votes
by (280 points)
The Dir() command returns an array with the filenames in my directory but with the DirDetails(".") nothing comes in return.
0 votes
by (162k points)
Please enable logging (see the Dev Guide) and post the log.

Also, log in with an ordinary FTP client and do a full listing of the directory with 'dir' and post it.
0 votes
by (280 points)
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 19 jun 2006 09:52:38.738 : Connecting to195.17.98.179:21
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:38.909 : 220-FTPD1 IBM FTP CS V1R6 at SEMAINF, 09:55:49 on 2006-06-19.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:39.129 : 220 Connection will close if idle for more than 10 minutes.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:39.139 : ---> USER D610TES
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:39.209 : 331 Send password please.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:39.209 : ---> PASS ********
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:40.691 : 230 D610TES is logged on. Working directory is "D610.".
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:40.701 : ---> TYPE A
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:40.731 : 200 Representation type is Ascii NonPrint
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:40.731 : ---> CWD FTPTEST
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:40.801 : 250 "D610.FTPTEST." is the working directory name prefix.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:41.062 : ---> SYST
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:41.262 : 215 MVS is the operating system of this server. FTP Server is running on z/OS. WARN [EnterpriseDT.Net.Ftp.FTPFileFactory] 19 jun 2006 09:52:41.262 : Unknown SY
ST 'MVS is the operating system of this server. FTP Server is running on z/OS.'
- defaulting to Unix parsing
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:41.262 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:41.322 : 227 Entering Passive Mode (195,17,98,179,9,246)
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:41.592 : ---> LIST .
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:42.003 : 550 No data sets found.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:42.103 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:42.283 : 227 Entering Passive Mode (195,17,98,179,9,249)
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:42.294 : ---> LIST
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:42.504 : 125 List started OK
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:42.734 : 250 List completed successfully.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 19 jun 2006 09:52:42.734 : Found 3 listing lines
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:42.824 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:43.225 : 227 Entering Passive Mode (195,17,98,179,9,252)
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:43.425 : ---> LIST
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:44.747 : 125 List started OK
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:44.997 : 250 List completed successfully.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 19 jun 2006 09:52:44.997 : Found 3 listing lines
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:45.248 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:45.408 : 227 Entering Passive Mode (195,17,98,179,10,1)
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:45.488 : ---> LIST .
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:45.598 : 550 Nodata sets found.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:45.628 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:45.698 : 227 Entering Passive Mode (195,17,98,179,10,4)
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:45.829 : ---> LIST
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:45.959 : 125 List started OK
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:46.309 : 250 List completed successfully.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 19 jun 2006 09:52:46.309 : Found 3 listing lines
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:49.103 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:49.374 : 227 Entering Passive Mode (195,17,98,179,10,12)
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:49.414 : ---> LIST .
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:49.774 : 550 Nodata sets found.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:49.884 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:50.005 : 227 Entering Passive Mode (195,17,98,179,10,13)
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:50.035 : ---> LIST
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:50.105 : 125 List started OK
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 19 jun 2006 09:52:50.535 : 250 List completed successfully.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 19 jun 2006 09:52:50.535 : Found 3 listing lines


In the directory there are only three files.
0 votes
by (162k points)
This is weird behaviour, as you can see that 550 is returned on one LIST, then 3 files are returned on the subsequent LIST.

Can you post the listing returned by typing 'dir' in the FTP command line?
0 votes
by (280 points)
There is now 5 files in the directory:


ftp> cd ftptest
250 "D610.FTPTEST." is the working directory name prefix.
ftp> dir
200 Port request OK.
125 List started OK
Volume Unit Referred Ext Used Recfm Lrecl BlkSz Dsorg Dsname
ISTN96 3390 2006/06/19 1 1 FB 128 27904 PS CERDO.TEST
ISTN95 3390 2006/06/19 1 3 FB 350 27650 PS CERDO.UPD
ISTN72 3390 2006/06/19 1 3 FB 350 27650 PS CERDO.UPD.POST
ISTN60 3390 2006/06/20 1 3 FB 350 27650 PS CERDO.UPD.POST.LK
ISTN78 3390 2006/06/19 1 1 FB 128 27904 PS SPORT.TXT
0 votes
by (162k points)
Ah this explains a lot. We've not seen this format before and our parsers won't be able to parse it. So DirDetails won't work until a new ZOS parser is written.
0 votes
by (280 points)
So the DirDetails won't be able to parse the textfile (SPORT.TXT) either?
0 votes
by (51.6k points)
I don't understand. Can you please explain what you mean?

- Hans (EDT)
0 votes
by (162k points)
DirDetails basically gets a stream of text that is the same as that returned by 'dir' in a commandline client. As the ZOS format is unknown to DirDetails, it fails to parse the data to convert it to FTPFile objects.

SPORT.TXT is never parsed by FTP clients, it is just a file on the FTP server.

A new parser must be written to cope with ZOS directory listings. You can write it yourself or EDT can write one for you (although we will charge for our time in doing so - probably 3 hours of time including testing). Contact us at support at enterprisedt dot com if you want us to write one.

So the DirDetails won't be able to parse the textfile (SPORT.TXT) either?

Categories

...