Compression issues - WeOnlyDo Discussion board

Compression issues (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Roman, Thursday, April 12, 2007, 14:14 (6246 days ago)

I have question,
before invoke 'connect' method I set 'compression' property to 6.
After connect to server 'compression' property change to 0 ( maybe because server doesn't support compression ).
Next in marked lines I have exception Syntax error, command unrecognized. . If try once more execute this line, it execute correctly.
In log appear lines :

GetServerResponse returned 500
Command: OPTS MODE Z LEVEL 3 500 'OPTS MODE Z LEVEL 3': command not understood.

My JScript code:
[code]
var ftp = new ActiveXObject( WeOnlyDo.wodFtpDLXCom );
ftp.DebugFile = d:/debug.log ;
ftp.blocking = true;
ftp.hostname = ... ;
ftp.login = ... ;
ftp.password = ... ;

ftp.passive = false;
ftp.connect();

ftp.compression = 7;
ftp.listDir( / );

ftp.compression = 4;
ftp.listDir( / ); // HERE EXCEPTION

ftp.compression = 3;
ftp.listDir( / ); // HERE EXCEPTION

ftp.disconnect();
[/code]

Questions:
1) What meen change 'compression' to 0 after connect?
2) Why raise exceptions on ListDir?


Complete thread: