Differences
This shows you the differences between the selected revisions of the page.
| 2017-10-09 | 2017-10-09 | ||
| code wrapping for new design (martin) | code wrapping for new design 2 (martin) | ||
| Line 184: | Line 184: | ||
| transferOptions.TransferMode = TransferMode_Binary; | transferOptions.TransferMode = TransferMode_Binary; | ||
| - | var transferResult = session.PutFiles("d:\\toupload\\*", "/home/user/", false, transferOptions); | + | var transferResult = |
| + | ···········session.PutFiles("d:\\toupload\\*", "/home/user/", false, transferOptions); | ||
| // Throw on any error | // Throw on any error | ||
| Line 190: | Line 191: | ||
| // Print results | // Print results | ||
| - | for (var enumerator = new Enumerator(transferResult.Transfers); !enumerator.atEnd(); enumerator.moveNext()) | + | var enumerator = new Enumerator(transferResult.Transfers); |
| + | for (; !enumerator.atEnd(); enumerator.moveNext()) | ||
| { | { | ||
| WScript.Echo("Upload of " + enumerator.item().FileName + " succeeded"); | WScript.Echo("Upload of " + enumerator.item().FileName + " succeeded"); | ||