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
+24-13Lines changed: 24 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,25 +21,26 @@ End if
21
21
|[cs.FileTransfer_Dropbox_.new](#new)<p> creates and returns a FileTransfer object allow to access Dropbox.|
22
22
|[result parameter](#result-parameter)(#new)<p> All transfer function returns a result object|
23
23
|[.upload](#upload)<p> Upload a file to the server.|
24
-
|[.getDirectoryListing](#getDirectoryListing)<p> Returns directory listing from remote server.|
25
-
|[.createDirectory](#createDirectory)<p> Creates a new directory on remote server.|
26
-
|[.deleteDirectory](#deleteDirectory)<p> Deletes a directory on remote server.|
27
-
|[.deleteFile](#deleteFile)<p> Deletes a file on remote server.|
28
-
|[.renameFile](#renameFile)<p> Renames a file on remote server.|
29
-
|[.moveFile](#renameFile)<p> Moves a file on remote server.|
24
+
|[.download](#download)<p> Download a file from the server.|
25
+
|[.getdirectorylisting](#getDirectoryListing)<p> Returns directory listing from remote server.|
26
+
|[.createDirectory](#createdirectory)<p> Creates a new directory on remote server.|
27
+
|[.deleteDirectory](#deletedirectory)<p> Deletes a directory on remote server.|
28
+
|[.deleteFile](#deletefile)<p> Deletes a file on remote server.|
29
+
|[.renameFile](#renamefile)<p> Renames a file on remote server.|
30
+
|[.moveFile](#movefile)<p> Moves a file on remote server.|
31
+
|[.executeCommand](#executecommand)<p> Allows to pass any valid Dropbox command and directly execute it.|
30
32
|[.version](#version)<p> returns in result.data version information from Dropbox Command Line Interface Tool|
31
-
|[.setPath](#setPath)<p> Allows to use another dbxcli installation.|
32
-
|[.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..|
33
+
|[.setPath](#setpath)<p> Allows to use another dbxcli installation.|
34
+
|[.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..|
33
35
|[.stop](#stop)<p> Terminates the execution of a running operation, such as upload or download.|
34
36
|[.status](#status)<p> Returns informations about the execution of a running operation.|
35
37
|[.wait](#wait)<p> Only useful in combination with setAsyncMode.|
36
-
|[.useCallback](#useCallback)<p> Allows to show a progress bar during long running operations.|
38
+
|[.useCallback](#usecallback)<p> Allows to show a progress bar during long running operations.|
37
39
38
-
-------###### status,s top, wait, set async, still missing ########
39
40
40
41
## new
41
42
42
-
### cs.FileTransfer_Dropbox_.new()
43
+
### cs.FileTransfer_Dropbox.new()
43
44
44
45
creates and returns a FileTransfer object allow to access Dropbox account.
45
46
@@ -49,13 +50,13 @@ creates and returns a FileTransfer object allow to access Dropbox account.
49
50
50
51
#### Description
51
52
52
-
The cs.FileTransfer_Dropbox_.new() function creates and returns an object allow to access a Dropbox account for file transfer operations, such as upload or download a document, get directory, as well as create and delete a directory or rename, delete or remove a document.
53
+
The cs.FileTransfer_Dropbox.new() function creates and returns an object allow to access a Dropbox account for file transfer operations, such as upload or download a document, get directory, as well as create and delete a directory or rename, delete or remove a document.
53
54
54
55
Internally the class uses dbxcli to access the file server.
55
56
56
57
```4D
57
58
var $ftp : cs.FileTransfer
58
-
$ftp:=cs.FileTransfer_Dropbox_.new()
59
+
$ftp:=cs.FileTransfer_Dropbox.new()
59
60
```
60
61
61
62
## File transfer commands
@@ -185,6 +186,16 @@ Deletes a file on remote server.
185
186
#### Description
186
187
Moves a file on remote server to another directory (and/or rename it)
187
188
189
+
## executeCommand
190
+
191
+
### .executeCommand(command: Text) -> result : Object
192
+
|Parameter|Type||Description|
193
+
|---------|--- |:---:|------|
194
+
|command|Text|->|command|
195
+
|result|Object|<-|result object|
196
+
197
+
#### Description
198
+
Allows to pass any valid Dropbox dbxcli command and execute it. Result is returned directly.
0 commit comments