You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/Classes/FileTransfer_Dropbox.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ End if
31
31
|[.executeCommand](#executecommand)<p> Allows to pass any valid Dropbox command and directly execute it.|
32
32
|[.version](#version)<p> returns in result.data version information from Dropbox Command Line Interface Tool|
33
33
|[.setPath](#setpath)<p> Allows to use another dbxcli installation.|
34
+
|[.enableStopButton](#enablestopbutton)<p> Display stop button in progress dialog.|
34
35
|[.setAsyncMode](#setasyncmode)<p> By default all commands are executed synchronously, meaning the command do not return till execution is completed or a timeout occurred. This allows all command to return the result or execution information..|
35
36
|[.setTimeout](#settimeout)<p> sets a maximum worker execution time, stopping everything.|
36
37
|[.stop](#stop)<p> Terminates the execution of a running operation, such as upload or download.|
@@ -239,6 +240,18 @@ sets a maximum execution time for the worker. By default all operations are stop
239
240
The timeout is not considered when asynchronous mode is enabled.
240
241
241
242
243
+
## enableStopButton
244
+
245
+
### .enableStopButton(enable:Shared Object)
246
+
|Parameter|Type||Description|
247
+
|---------|--- |:---:|------|
248
+
|enable|Object|->|Shared Object with Attribut Stop|
249
+
250
+
#### Description
251
+
Only useable if included or similar ProgressCallback method is used.
252
+
If passed it enables the stop button in progress bar, allowing the end user to abort the operation. If Stop button is clicked, attribut of shared object enable.stop is set to true
Copy file name to clipboardExpand all lines: Documentation/Classes/FileTransfer_GDrive.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ End if
37
37
|[.executeCommand](#executecommand)<p> Allows to pass any valid GDrive command and directly execute it.|
38
38
|[.version](#version)<p> returns in result.data version information from Gdrive Command Line Interface Tool|
39
39
|[.setPath](#setpath)<p> Allows to specify the installation path.|
40
+
|[.enableStopButton](#enablestopbutton)<p> Display stop button in progress dialog.|
40
41
|[.setAsyncMode](#setasyncmode)<p> By default all commands are executed synchronously, meaning the command do not return till execution is completed or a timeout occurred. This allows all command to return the result or execution information..|
41
42
|[.setTimeout](#settimeout)<p> sets a maximum worker execution time, stopping everything.|
42
43
|[.stop](#stop)<p> Terminates the execution of a running operation, such as upload or download.|
@@ -350,6 +351,18 @@ Precompiled versions for Mac and Windows can be downloaded from:
|enable|Object|->|Shared Object with Attribut Stop|
360
+
361
+
#### Description
362
+
Only useable if included or similar ProgressCallback method is used.
363
+
If passed it enables the stop button in progress bar, allowing the end user to abort the operation. If Stop button is clicked, attribut of shared object enable.stop is set to true
Copy file name to clipboardExpand all lines: Documentation/Classes/FileTransfer_curl.md
+54-31Lines changed: 54 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ For more examples see the method "test_curl".
43
43
|[.setCurlPrefix](#setcurlprefix)<p> Allows to use any additional cURL options.|
44
44
|[.setPath](#setpath)<p> Allows to use another cURL installation.|
45
45
|[.enableProgressData](#enableprogressdata)<p> If enabled, result.data will include progress information text.|
46
+
|[.enableStopButton](#enablestopbutton)<p> Display stop button in progress dialog.|
46
47
|[.setAsyncMode](#setasyncmode)<p> By default all commands are executed synchronously, meaning the command do not return till execution is completed or a timeout occurred. This allows all command to return the result or execution information..|
47
48
|[.setTimeout](#settimeout)<p> sets a maximum worker execution time, stopping everything.|
48
49
|[.stop](#stop)<p> Terminates the execution of a running operation, such as upload or download.|
@@ -400,6 +401,17 @@ If enabled, result.data will include progress information text, allowing to get
400
401
Depending of total transfer time, the text will include additional lines with progress info.
401
402
Automatically enabled if useCallback is enabled.
402
403
404
+
## enableStopButton
405
+
406
+
### .enableStopButton(enable:Shared Object)
407
+
|Parameter|Type||Description|
408
+
|---------|--- |:---:|------|
409
+
|enable|Object|->|Shared Object with Attribut Stop|
410
+
411
+
#### Description
412
+
Only useable if included or similar ProgressCallback method is used.
413
+
If passed it enables the stop button in progress bar, allowing the end user to abort the operation. If Stop button is clicked, attribut of shared object enable.stop is set to true
414
+
403
415
## setAsyncMode
404
416
405
417
### .setAsyncMode(async:Boolean)
@@ -470,7 +482,7 @@ The command returns after given wait time or before if execution is finished.
470
482
|Parameter|Type||Description|
471
483
|---------|--- |:---:|------|
472
484
|callback|4D.Function|->|4d function to call during progress|
473
-
|ID|Text|->|unique text to pass to callback method to identify job|
485
+
|ID|Text|->|text to display in progress title, such as download file name|
474
486
475
487
#### Description
476
488
Allows to show a progress bar during long running operations or to get informed when command execution is complete.
@@ -481,52 +493,63 @@ The callback method is called whenever a new progress message is available from
This protocol assumes that it is run over a secure channel, such as SSH, that the server has already authenticated the client, and that the identity of the client user is available to the protocol.
94
94
95
-
While you normally do not simply provide credentials (user+password) to login, you need to estabilish upfront a SSH connection to store the ssh key from the SFTP Server in the local keyring. The benefit is that you do not need username+password for login, all goes through keys. But it is possible to use user+password similar as for FTPS, while you need to be aware that in this case you cannot trust that the connection really go to the right server, this is a possible security issue.
96
-
97
-
Most easiest way to check, exchange and store client and server keys is to open a terminal window (using Terminal on Mac/Terminal or Console on Windows) and enter:
98
-
```
99
-
ssh username@sftp.servername.com
100
-
```
101
-
102
-
This will request the password and display the ssh hash, asking if you accept to store it in your .ssh/authorized_keys file.
103
-
In a similar way you could exchange keys upfront to avoid using passwords at all to enhance security.
104
-
Google "ssh key authentication" for more help and examples.
105
-
106
-
As soon the authentication was done once via ssh (or the key is stored in your authorized_keys file by another way), the class can be used without providing credentials, just the URL is enough.
95
+
Using SFTP you might either use username+password as you would do with FTPS, or exchange keys. To use SFTP via keys, establish upfront a SSH connection using Terminal, this setup will be reused from cURL.
0 commit comments