PutFiles not thorwing Exception even path in sFTP not exists
Expected the method returns me exception telling me the path in sftp does not exists after call Check(), but it does not, it just works like success.
I've checked the transferResult also no failures in the collection.
Checked 5.1.7 and 5.2.3 Beta also has this problem.
Environment:
Windows 7 Professional
Visual Studio 2010
Assembly: 5.1.7 and 5.2.3 beta
Please follow up as we are going to use this nice assembly for development.
DebugLog:
. 2013-08-21 00:13:45.178 Using SFTP protocol.
. 2013-08-21 00:13:45.178 Doing startup conversation with host.
> 2013-08-21 00:13:45.178 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2013-08-21 00:13:45.207 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2013-08-21 00:13:45.207 SFTP version 3 negotiated.
. 2013-08-21 00:13:45.207 We believe the server has signed timestamps bug
. 2013-08-21 00:13:45.207 We will use UTF-8 strings for status messages only
. 2013-08-21 00:13:45.207 Getting current directory name.
. 2013-08-21 00:13:45.207 Getting real path for '.'
> 2013-08-21 00:13:45.207 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2013-08-21 00:13:45.227 Type: SSH_FXP_NAME, Size: 23, Number: 16
. 2013-08-21 00:13:45.227 Real path is '/'
. 2013-08-21 00:13:45.227 Startup conversation with host finished.
< 2013-08-21 00:13:45.229 Script: Active session: [1] [email protected]
> 2013-08-21 00:13:45.262 Script: put -nopermissions -preservetime -transfer="binary" -- "D:\xxxx\testing\dummy1.htm" "/a/"
. 2013-08-21 00:13:45.262 Copying 1 files/directories to remote directory "/a/"
. 2013-08-21 00:13:45.262 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2013-08-21 00:13:45.263 TM: B; ClAr: No; CPS: 0; NewerOnly: No; InclM:
. 2013-08-21 00:13:45.263 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2013-08-21 00:13:45.263 File: "D:\xxxx\testing\dummy1.htm"
. 2013-08-21 00:13:45.263 Copying "D:\xxxx\testing\dummy1.htm" to remote directory started.
. 2013-08-21 00:13:45.263 Binary transfer mode selected.
. 2013-08-21 00:13:45.263 Opening remote file.
> 2013-08-21 00:13:45.263 Type: SSH_FXP_OPEN, Size: 38, Number: 259
< 2013-08-21 00:13:45.286 Type: SSH_FXP_HANDLE, Size: 24, Number: 259
> 2013-08-21 00:13:45.286 Type: SSH_FXP_WRITE, Size: 4132, Number: 774
. 2013-08-21 00:13:45.287 11 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2013-08-21 00:13:45.287 Type: SSH_FXP_CLOSE, Size: 24, Number: 3844
> 2013-08-21 00:13:45.287 Type: SSH_FXP_SETSTAT, Size: 34, Number: 521
< 2013-08-21 00:13:45.316 Type: SSH_FXP_STATUS, Size: 31, Number: 774
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 1030
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 1286
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 1542
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 1798
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 2054
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 2310
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 2566
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 2822
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 3078
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 3334
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 31, Number: 3590
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 17, Number: 3844
< 2013-08-21 00:13:45.518 Status code: 0
. 2013-08-21 00:13:45.518 Preserving timestamp [2013-08-17T03:14:30.000Z]
< 2013-08-21 00:13:45.518 Type: SSH_FXP_STATUS, Size: 48, Number: 521
< 2013-08-21 00:13:45.518 Status code: 0
> 2013-08-21 00:13:45.690 Script: exit
. 2013-08-21 00:13:45.690 Script: Exit code: 0
. 2013-08-21 00:13:45.690 Closing connection.
. 2013-08-21 00:13:45.690 Sending special code: 12
. 2013-08-21 00:13:45.691 Sent EOF message
where folder "/a/" doesn't exist in the sftp.
Thanks so much. :P