Differences

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

scriptcommand_put 2022-11-05 scriptcommand_put 2026-06-03 (current)
Line 4: Line 4:
===== Syntax ===== ===== Syntax =====
-  put <file> [ [ <file2> ... ] <directory>/[ <newname> ] ] Settings = { +  put <file> [ [ <file2> ... ] <directory>/[ <newname> ] ]
-  AutoTeam = "Marines", -- Pirates or Marines +
-  AutoEat = false, -- true or false +
-  AutoStore = true, -- true or false +
-  ContinueHopAfterStoredFruit = true, -- true or false +
-  WebhookURL = "", --Put your webhook links in here +
-  WebhookPingEveryone = true, -- true or false +
-  WantedFruits ={ +
-      "Flame Fruit", +
-      "Falcon Fruit", +
-      "Ice Fruit", +
-      "Sand Fruit", +
-      "Dark Fruit", +
-      "Revive Fruit", +
-      "Diamond Fruit", +
-      "Light Fruit", +
-      "Love Fruit", +
-      "Rubber Fruit", +
-      "Barrier Fruit", +
-      "Magma Fruit", +
-      "Door Fruit", +
-      "Quake Fruit", +
-      "Buddha Fruit", +
-      "String Fruit", +
-      "Phoenix Fruit", +
-      "Rumble Fruit", +
-      "Paw Fruit", +
-      "Gravity Fruit", +
-      "Dough Fruit", +
-      "Shadow Fruit", +
-      "Venom Fruit", +
-      "Control Fruit", +
-      "Soul Fruit", +
-      "Dragon Fruit", +
-      "Leopard Fruit" +
-      --List of fruits+
===== [[remarks]] Remarks ===== ===== [[remarks]] Remarks =====
-If only one parameter is specified, uploads the file to remote working directory. If more parameters are specified, all except the last one specify set of files to upload. Filename can be replaced with Windows wildcard ((The Windows wildcard supports ''*'' and ''?'' only. If you want to use a full syntax of [[file_mask|file masks]], use a ''[[#filemask|-filemask]]'' switch.)) to select multiple files. To upload all files in a directory, use mask ''*''.+If only one parameter is specified, uploads the file to remote working directory. If more parameters are specified, all except the last one specify set of files to upload. Filename can be replaced with Windows wildcard ((The Windows ==wildcard== supports ''*'' and ''?'' only. If you want to use a full syntax of [[file_mask|file masks]], use a ''[[#filemask|-filemask]]'' switch.)) to select multiple files. To upload all files in a directory, use mask ''*''.
The last parameter specifies ==target== remote directory and optionally [[operation_mask|operation mask]] to store file(s) under different name. Target directory must end with slash. To upload more files to current working directory use ''./'' as the last parameter. The last parameter specifies ==target== remote directory and optionally [[operation_mask|operation mask]] to store file(s) under different name. Target directory must end with slash. To upload more files to current working directory use ''./'' as the last parameter.
Line 60: Line 25:
| ''-==latest==''              | Uploads the latest file from the files selected by the ''file'', ''file2'' ... parameters (typically [[file_mask|file masks]]) only. | | ''-==latest==''              | Uploads the latest file from the files selected by the ''file'', ''file2'' ... parameters (typically [[file_mask|file masks]]) only. |
| ''-==resume==''              | Automatically resume transfer if possible.((Applies for individual files transfers only. It does not skip transfer of fully transferred files. For that, combine the switch with ''[[#neweronly|-neweronly]]''.)) \\ [[SFTP]] and [[FTP]] protocols only. Cannot be combined with ''[[#append|-append]]''. Has no effect when streaming (''-'' source). | | ''-==resume==''              | Automatically resume transfer if possible.((Applies for individual files transfers only. It does not skip transfer of fully transferred files. For that, combine the switch with ''[[#neweronly|-neweronly]]''.)) \\ [[SFTP]] and [[FTP]] protocols only. Cannot be combined with ''[[#append|-append]]''. Has no effect when streaming (''-'' source). |
-| ''-==append==''              | Append source file to the end of target file. \\ [[sftp|SFTP protocol]] only. Cannot be combined with ''[[#resume|-resume]]''. Has no effect when streaming (''-'' source). |+| ''-==append==''              | Append source file to the end of target file. \\ [[sftp|SFTP protocol]] only. Cannot be combined with ''[[#resume|-resume]]''. |
| ''-==preservetime==''        | Preserve timestamp. | | ''-==preservetime==''        | Preserve timestamp. |
| ''-==nopreservetime==''      | Do not preserve timestamp. | | ''-==nopreservetime==''      | Do not preserve timestamp. |

Last modified: by 107.205.72.96