Archived Forum PostQuestion:
When I call get_NumFilesAndDirs() on an OpenVMS server it returns 0 (no files/subdirs found). Immediately after this call, I print the lastErrorText:
NumFilesAndDirs:
DllDate: Dec 12 2012
UnlockPrefix: WATCHDFTP
Username: DELL7:Gert
Architecture: Little Endian; 32-bit
Language: Visual C++ 9.0
VerboseLogging: 0
FTP directory cache not fresh. Fetching dir listing...
checkDirCache_listPattern:
supportsMLSD: 0
ListDir:
Passive transfer mode
setupPassiveDataSocket1:
hostAddr: 217.xx.yyy.83
DataConnect:
hostname: 217.xx.yyy.83
port: 51630
ConnectTimeoutMs_1: 20000
calling ConnectSocket2
IPV6 enabled connect with NO heartbeat.
This is an IPV4 numeric address...
AddrInfoList:
AddrInfo:
ai_flags: 4
ai_family: 2
ai_socktype: 1
ai_protocol: 0
ai_addrlen: 16
ai_canonname: (NULL)
--AddrInfo
--AddrInfoList
Connect using IPV4.
ipAddress1: 217.xx.yyy.83
myIP_3: 192.xxx.y.102
myPort_3: 55915
connect successful (2)
socketOptions:
SO_SNDBUF: 8192
SO_RCVBUF: 8192
TCP_NODELAY: 8192
--socketOptions
--DataConnect
--setupPassiveDataSocket1
SendingFtpCommand:
sendingCommand: LIST
--SendingFtpCommand
listDirStatusCode: 150
listDirIntermediateReply: 150 Opening data connection for DISK$PROD:[PROD.MBX.GDPSW.EXPORT].; (94.xxx.yy.247,55915)
ReadFtpDataChannel:
numBytesRequested: 4096
Connection closed by connected peer.
--ReadFtpDataChannel
readDataSockSuccess: 1
dirListSize: 312
Data connection closed by server
Assuming an empty directory listing...
Type 3 directory listing
ListTimeMS: 94
--ListDir
--checkDirCache_listPattern
N: 0
Success.
--NumFilesAndDirs
ChilkatLog
I know there are 2 files in this directory (checked with filezilla), but CkFtp2 doesn't see them somehow. At the bottom you can see the session log (with the LIST result showing 2 files). Is there some special setting I need to use for OpenVMS? If needed I can send you the login-details for a test account.
220 ftp1.uuuuuuu.aa FTP Server (Version 5.4) Ready.
.
USER user
331 Username user requires a Password
.
PASS ****
230 User logged in.
.
TYPE I
200 TYPE set to IMAGE.
.
SYST
200 VMS OpenVMS V7.3 on node ftp1.uuuuuuu.aa.
.
FEAT
502 FEAT is unimplemented.
.
CWD /
250-CWD command successful.
250 New default directory is DISK$PROD:[PROD.MBX.GDPSW.EXPORT]
.
PASV
227 Entering Passive Mode (217,xx,yyy,83,201,174)
.
LIST
150 Opening data connection for DISK$PROD:[PROD.MBX.GDPSW.EXPORT]*.*; (94.xxx.yy.247,55915)
(DirListingCharset: ansi)
read listing success = 1, listing size = 312
Directory DISK$PROD:[PROD.MBX.GDPSW.EXPORT]
2_sort.txt;1 3/3 22-MAR-2013 11:55:19 [ABCDW] (RWED,RWED,RWED,)
ST16_CL12034994_.STAT;1
4/6 15-MAR-2013 09:25:30 [ABCDW] (RWED,RWED,RWED,RE)
Total of 2 files, 7/9 blocks
226 LIST Directory transfer complete.
Thanks Gert! I'm pretty sure this was fixed about a week ago. I'll send a new download link for the v9.4.1 pre-release, but at this moment the CkZip functionality within the v9.4.1 pre-release is still under "road construction".