Re: Possible TransferResult Bug
That's correct (expected) behavior.
The
If you want to test that the transfer succeeded and something was actually transferred, test also
The
localfile[1].pdf
is a file mask (the [1]
is a set pattern). If the mask matches no file, WinSCP won't transfer anything (and it's not an error). Note that localfile[1].pdf
mask does not match the localfile[1].pdf
file.
If you want to test that the transfer succeeded and something was actually transferred, test also
TransferOperationResult.Transfers.Count > 0
.