Differences

This shows you the differences between the selected revisions of the page.

scriptcommand_option 2014-07-14 scriptcommand_option 2014-07-14
Line 16: Line 16:
| ''confirm''    | ''%%off|on%%'' \\ Toggles confirmations (overwrite, etc.). \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'' | | ''confirm''    | ''%%off|on%%'' \\ Toggles confirmations (overwrite, etc.). \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'' |
| ''reconnecttime''    | ''%%off | <sec>%%'' \\ Sets time limit in seconds to try reconnecting broken sessions. Default value ''off'' removes any time limit. \\ Reconnect time is set implicitly to 120 seconds, when batch mode (''batch'' option above) is enabled (&beta_feature) \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'', ''[[scriptcommand_synchronize|synchronize]]'', ''[[scriptcommand_keepuptodate|keepuptodate]]'' | | ''reconnecttime''    | ''%%off | <sec>%%'' \\ Sets time limit in seconds to try reconnecting broken sessions. Default value ''off'' removes any time limit. \\ Reconnect time is set implicitly to 120 seconds, when batch mode (''batch'' option above) is enabled (&beta_feature) \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'', ''[[scriptcommand_synchronize|synchronize]]'', ''[[scriptcommand_keepuptodate|keepuptodate]]'' |
 +| ''failonnomatch'' | ''%%off|on%%'' \\ Toggles whether commands fail when file mask matches no files. Default value is ''off''. &beta_feature \\ Commands affected: ''[[scriptcommand_get|get]]'', ''[[scriptcommand_put|put]]'', ''[[scriptcommand_rm|rm]]'', ''[[scriptcommand_mv|mv]]'', ''[[scriptcommand_chmod|chmod]]'' |
Note that resetting the same option overwrites a previous value, it does not append. Note that resetting the same option overwrites a previous value, it does not append.
Line 40: Line 41:
| ''confirm''      | .NET asembly is non-interactive, so confirmations are always off. | | ''confirm''      | .NET asembly is non-interactive, so confirmations are always off. |
| ''reconnecttime'' | Set ''[[library_session|Session.ReconnectTime]]''. | | ''reconnecttime'' | Set ''[[library_session|Session.ReconnectTime]]''. |
 +| ''failonnomatch'' | No explicit mapping. To check if mask matches any file, you have to retrieve directory listing and search the listing for matching files. |
For example the following most common script option prologue does not need any mapping to .NET assembly, providing you follow instructions for [[library_from_script#mode|mapping scripting modes to .NET assembly]] for individual batch operation commands. For example the following most common script option prologue does not need any mapping to .NET assembly, providing you follow instructions for [[library_from_script#mode|mapping scripting modes to .NET assembly]] for individual batch operation commands.

Last modified: by martin