Archived Forum Post

Index of archived forum posts

Question:

ftp2 puttree, putplan not working

Oct 14 '13 at 11:17
chilkat ver 9.4.12 , vfp 9.0 sp2, korean language

i use no korean language in dir and file name, but strange char appears in chilkat error log
DirListingChar =ansi, and chage to utf-8 results to same error

*** session log

220 FTP Server ready .. .
 FEAT 211-Features: MDTM REST STREAM SIZE 
211 End . 
CWD /ping.root/ 
250 CWD command successful . 
PWD 
257 "/ping.root" is current directory. . 
CWD /ping.root 
250 CWD command successful . 
CWD /ping.root0x08 0x58 0x13 , ( this chars are continuosly changed when i run prg, though plan is same) 
550 /ping.root0x08 0x58 0x13 : No such file or directory ( i guess /ping.root/tmp )

why that message appears (and fails)??

*** created plan 
c,/ping.root 
p,d:/ping.root/licence.txt,licence.txt 
p,d:/ping.root/ping.master.ini,ping.master.ini 
p,d:/ping.root/ping.master.local.ini,ping.master.local.ini 
d,/ping.root/config d,/ping.root/dll 
d,/ping.root/down 
d,/ping.root/file 
d,/ping.root/table 
d,/ping.root/tmp 
c,/ping.root/tmp 
p,d:/ping.root/tmp/293.gif,293.gif 
p,d:/ping.root/tmp/BG_500_300_001.BMP,BG_500_300_001.BMP 
p,d:/ping.root/tmp/ping.file.tmp3.dbf,ping.file.tmp3.dbf 
p,d:/ping.root/tmp/tmp_stru.DBF,tmp_stru.DBF 
p,d:/ping.root/tmp/tmp_stru.FPT,tmp_stru.FPT 
c,/ping.root/table 
p,d:/ping.root/table/aboutme.DBF,aboutme.DBF 
p,d:/ping.root/table/sms.theme.BAK,sms.theme.BAK .......


Answer

I believe the current version can be made to work, but let's try the newest pre-release because the logging in LastErrorText will be better:

http://www.chilkatsoft.com/preRelease/ChilkatFtp2-9.4.1-win32.zip

Test using this new build with the ftp.VerboseLogging property set equal to 1. Post the contents of the both the SessionLog and the contents of the LastErrorText for the call to PutTree.

Also, I noticed your FTP server does not list UTF8 as a feature:

220 FTP Server ready .. .
 FEAT 211-Features: MDTM REST STREAM SIZE 

This could cause a problem if characters outside of the ANSI charset (of the server) are used.

Finally, the new pre-release version introduces a new property named CommandCharset. This allows for a separation of charsets to be defined. The DirListingCharset is specifically for interpreting the bytes of a directory listing, whereas the CommandCharset applies to the charset used for characters sent/received over the control channel.