diff --git a/Project/Sources/Methods/test.4dm b/Project/Sources/Methods/test.4dm index ffb3708..8cef898 100644 --- a/Project/Sources/Methods/test.4dm +++ b/Project/Sources/Methods/test.4dm @@ -1,21 +1,22 @@ //%attributes = {} -var $ftp : cs:C1710.FileTransfer_curl +var $ftp_c : cs:C1710.FileTransfer_curl +var $ftp_r : cs:C1710.FileTransfer_rclone var $progressid; $source; $target; $answer; $text; $path : Text var $checkstop; $result : Object var $list : Collection -$ftp:=cs:C1710.FileTransfer_curl.new("download.4d.com"; ""; ""; "https") +$ftp_c:=cs:C1710.FileTransfer_curl.new("download.4d.com"; ""; ""; "https") $progressid:="Download 4D.dmg" $checkstop:=New shared object:C1526("stop"; False:C215) -$ftp.enableStopButton($checkstop) -$ftp.useCallback(Formula:C1597(ProgressCallback); $progressid) +$ftp_c.enableStopButton($checkstop) +$ftp_c.useCallback(Formula:C1597(ProgressCallback); $progressid) $source:="/Products/4D_v19R5/Installers/4D_v19_R5_Mac.dmg" $target:=System folder:C487(Desktop:K41:16)+"4d.dmg" $target:=Convert path system to POSIX:C1106($target) -$ftp.setCurlPrefix("--location") // follow 301 or 302 -$result:=$ftp.download($source; $target) +$ftp_c.setCurlPrefix("--location") // follow 301 or 302 +$result:=$ftp_c.download($source; $target) // did user canceled? If ($checkstop.stop=True:C214) @@ -28,10 +29,10 @@ Else End if -$ftp:=cs:C1710.FileTransfer_rclone.new("gdrive") +$ftp_r:=cs:C1710.FileTransfer_rclone.new("gdrive") $path:="/users/thomas/Desktop/rclone-v1.59.1-osx-arm64/rclone" -$ftp.setPath($path) -$result:=$ftp.getDirectoryListing("/") +$ftp_r.setPath($path) +$result:=$ftp_r.getDirectoryListing("/") If ($result.success) $list:=$result.list $text:=JSON Stringify:C1217($list) @@ -42,18 +43,18 @@ Else End if -$ftp:=cs:C1710.FileTransfer_rclone.new("gdrive") +$ftp_r:=cs:C1710.FileTransfer_rclone.new("gdrive") $path:="/users/thomas/Desktop/rclone-v1.59.1-osx-arm64/rclone" -$ftp.setPath($path) +$ftp_r.setPath($path) $progressid:="Download zipg" $checkstop:=New shared object:C1526("stop"; False:C215) -$ftp.enableStopButton($checkstop) -$ftp.useCallback(Formula:C1597(ProgressCallback); $progressid) +$ftp_r.enableStopButton($checkstop) +$ftp_r.useCallback(Formula:C1597(ProgressCallback); $progressid) $source:="/16-10_CookieBaseWebAuth.zip" $target:=System folder:C487(Desktop:K41:16)+"test.zip" $target:=Convert path system to POSIX:C1106($target) -$result:=$ftp.download($source; $target) +$result:=$ftp_r.download($source; $target) // did user canceled? If ($checkstop.stop=True:C214) diff --git a/Resources/en.lproj/syntaxEN.json b/Resources/en.lproj/syntaxEN.json index 4feaf74..fbf8658 100644 --- a/Resources/en.lproj/syntaxEN.json +++ b/Resources/en.lproj/syntaxEN.json @@ -34,19 +34,6 @@ "Summary": "" } }, - "FileTransfer_rclone": { - "new()": { - "Syntax": "**.new**( *configname* : Text )", - "Params": [ - [ - "configname", - "Text", - "->" - ] - ], - "Summary": "" - } - }, "FileTransfer_curl": { "new()": { "Syntax": "**.new**( *hostname* : Text; *username* : Text; *password* : Text; *protocol* : Text )", @@ -75,20 +62,33 @@ "Summary": "" } }, - "FileTransfer_Dropbox": { + "FileTransfer_GDrive": { "new()": { "Syntax": "**.new**()", "Params": [], "Summary": "" } }, - "FileTransfer_GDrive": { + "FileTransfer_Dropbox": { "new()": { "Syntax": "**.new**()", "Params": [], "Summary": "" } }, + "FileTransfer_rclone": { + "new()": { + "Syntax": "**.new**( *configname* : Text )", + "Params": [ + [ + "configname", + "Text", + "->" + ] + ], + "Summary": "" + } + }, "_Build": { "new()": { "Syntax": "**.new**()", @@ -146,12 +146,6 @@ ], "Summary": "" }, - "SharedForProgressBar": { - "Syntax": "SharedForProgressBar : Object" - }, - "stopbutton": { - "Syntax": "stopbutton : Object" - }, "data": { "Syntax": "data : Object" }, @@ -164,28 +158,23 @@ "dataType": { "Syntax": "dataType : Text" }, - "encoding": { - "Syntax": "encoding : Text" + "SharedForProgressBar": { + "Syntax": "SharedForProgressBar : Object" + }, + "stopbutton": { + "Syntax": "stopbutton : Object" }, "callbackID": { "Syntax": "callbackID : Text" }, + "encoding": { + "Syntax": "encoding : Text" + }, "type": { "Syntax": "type : Text" } }, - "FileTransfer_rclone": { - "wait()": { - "Syntax": "**.wait**( *max* : Integer )", - "Params": [ - [ - "max", - "Integer", - "->" - ] - ], - "Summary": "" - }, + "FileTransfer_curl": { "status()": { "Syntax": "**.status**()->status : Object", "Params": [ @@ -197,133 +186,73 @@ ], "Summary": "" }, - "syncUp()": { - "Syntax": "**.syncUp**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "stop()": { + "Syntax": "**.stop**()", + "Params": [], + "Summary": "" + }, + "setPath()": { + "Syntax": "**.setPath**( *path* : Text )", "Params": [ [ - "sourcepath", - "Text", - "->" - ], - [ - "targetpath", + "path", "Text", "->" - ], - [ - "success", - "Object", - "<-" ] ], "Summary": "" }, - "createDirectory()": { - "Syntax": "**.createDirectory**( *targetpath* : Text )->success : Object", + "executeCommand()": { + "Syntax": "**.executeCommand**( *command* : Text ) : Object", "Params": [ [ - "targetpath", + "command", "Text", "->" ], [ - "success", - "Object", - "<-" - ] - ], - "Summary": "" - }, - "stop()": { - "Syntax": "**.stop**()", - "Params": [], - "Summary": "" - }, - "version()": { - "Syntax": "**.version**()->data : Object", - "Params": [ - [ - "data", + "", "Object", "<-" ] ], "Summary": "" }, - "enableStopButton()": { - "Syntax": "**.enableStopButton**( *enable* : Object )", + "wait()": { + "Syntax": "**.wait**( *max* : Integer )", "Params": [ [ - "enable", - "Object", + "max", + "Integer", "->" ] ], "Summary": "" }, - "setAsyncMode()": { - "Syntax": "**.setAsyncMode**( *async* : Boolean )", + "setAutoCreateRemoteDirectory()": { + "Syntax": "**.setAutoCreateRemoteDirectory**( *auto* : Boolean )", "Params": [ [ - "async", + "auto", "Boolean", "->" ] ], "Summary": "" }, - "useCallback()": { - "Syntax": "**.useCallback**( *callback* : 4D.Function; *ID* : Text )", - "Params": [ - [ - "callback", - "4D.Function", - "->" - ], - [ - "ID", - "Text", - "->" - ] - ], - "Summary": "" - }, - "setPrefix()": { - "Syntax": "**.setPrefix**( *prefix* : Text )", + "renameFile()": { + "Syntax": "**.renameFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ - "prefix", + "sourcepath", "Text", "->" - ] - ], - "Summary": "" - }, - "setPath()": { - "Syntax": "**.setPath**( *path* : Text )", - "Params": [ + ], [ - "path", + "targetpath", "Text", "->" - ] - ], - "Summary": "" - }, - "setMaxTime()": { - "Syntax": "**.setMaxTime**( *seconds* : Real )", - "Params": [ - [ - "seconds", - "Real", - "->" - ] - ], - "Summary": "" - }, - "validate()": { - "Syntax": "**.validate**()->success : Object", - "Params": [ + ], [ "success", "Object", @@ -332,11 +261,11 @@ ], "Summary": "" }, - "executeCommand()": { - "Syntax": "**.executeCommand**( *command* : Text )->success : Object", + "deleteFile()": { + "Syntax": "**.deleteFile**( *targetpath* : Text )->success : Object", "Params": [ [ - "command", + "targetpath", "Text", "->" ], @@ -348,8 +277,8 @@ ], "Summary": "" }, - "copyFile()": { - "Syntax": "**.copyFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "download()": { + "Syntax": "**.download**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ "sourcepath", @@ -370,7 +299,7 @@ "Summary": "" }, "deleteDirectory()": { - "Syntax": "**.deleteDirectory**( *targetpath* : Text; *force* : Boolean )->success : Object", + "Syntax": "**.deleteDirectory**( *targetpath* : Text )->success : Object", "Params": [ [ "targetpath", @@ -378,10 +307,16 @@ "->" ], [ - "force", - "Boolean", - "->" - ], + "success", + "Object", + "<-" + ] + ], + "Summary": "" + }, + "validate()": { + "Syntax": "**.validate**()->success : Object", + "Params": [ [ "success", "Object", @@ -390,8 +325,19 @@ ], "Summary": "" }, - "moveFile()": { - "Syntax": "**.moveFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "setTimeout()": { + "Syntax": "**.setTimeout**( *timeout* : Integer )", + "Params": [ + [ + "timeout", + "Integer", + "->" + ] + ], + "Summary": "" + }, + "upload()": { + "Syntax": "**.upload**( *sourcepath* : Text; *targetpath* : Text; *append* : Boolean )->success : Object", "Params": [ [ "sourcepath", @@ -403,6 +349,11 @@ "Text", "->" ], + [ + "append", + "Boolean", + "->" + ], [ "success", "Object", @@ -411,46 +362,47 @@ ], "Summary": "" }, - "obscure()": { - "Syntax": "**.obscure**( *password* : Text )->obscured : Text", + "enableProgressData()": { + "Syntax": "**.enableProgressData**( *enable* : Boolean )", "Params": [ [ - "password", - "Text", + "enable", + "Boolean", "->" - ], - [ - "obscured", - "Text", - "<-" ] ], "Summary": "" }, - "deleteFile()": { - "Syntax": "**.deleteFile**( *targetpath* : Text )->success : Object", + "setActiveMode()": { + "Syntax": "**.setActiveMode**( *active* : Boolean; *IP* : Text )", "Params": [ [ - "targetpath", - "Text", + "active", + "Boolean", "->" ], [ - "success", - "Object", - "<-" + "IP", + "Text", + "->" ] ], "Summary": "" }, - "download()": { - "Syntax": "**.download**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "setCurlPrefix()": { + "Syntax": "**.setCurlPrefix**( *prefix* : Text )", "Params": [ [ - "sourcepath", + "prefix", "Text", "->" - ], + ] + ], + "Summary": "" + }, + "createDirectory()": { + "Syntax": "**.createDirectory**( *targetpath* : Text )->success : Object", + "Params": [ [ "targetpath", "Text", @@ -464,138 +416,101 @@ ], "Summary": "" }, - "renameFile()": { - "Syntax": "**.renameFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "setAsyncMode()": { + "Syntax": "**.setAsyncMode**( *async* : Boolean )", "Params": [ [ - "sourcepath", - "Text", - "->" - ], - [ - "targetpath", - "Text", + "async", + "Boolean", "->" - ], - [ - "success", - "Object", - "<-" ] ], "Summary": "" }, - "syncDown()": { - "Syntax": "**.syncDown**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "setConnectTimeout()": { + "Syntax": "**.setConnectTimeout**( *seconds* : Real )", "Params": [ [ - "sourcepath", - "Text", - "->" - ], - [ - "targetpath", - "Text", + "seconds", + "Real", "->" - ], - [ - "success", - "Object", - "<-" ] ], "Summary": "" }, - "upload()": { - "Syntax": "**.upload**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "setAutoCreateLocalDirectory()": { + "Syntax": "**.setAutoCreateLocalDirectory**( *auto* : Boolean )", "Params": [ [ - "sourcepath", - "Text", - "->" - ], - [ - "targetpath", - "Text", + "auto", + "Boolean", "->" - ], - [ - "success", - "Object", - "<-" ] ], "Summary": "" }, - "setTimeout()": { - "Syntax": "**.setTimeout**( *timeout* : Integer )", + "setMaxTime()": { + "Syntax": "**.setMaxTime**( *seconds* : Real )", "Params": [ [ - "timeout", - "Integer", + "seconds", + "Real", "->" ] ], "Summary": "" }, - "getDirectoryListing()": { - "Syntax": "**.getDirectoryListing**( *targetpath* : Text )->success : Object", + "useCallback()": { + "Syntax": "**.useCallback**( *callback* : 4D.Function; *ID* : Text )", "Params": [ [ - "targetpath", - "Text", + "callback", + "4D.Function", "->" ], [ - "success", - "Object", - "<-" + "ID", + "Text", + "->" ] ], "Summary": "" - } - }, - "FileTransfer_curl": { - "wait()": { - "Syntax": "**.wait**( *max* : Integer )", + }, + "setRange()": { + "Syntax": "**.setRange**( *range* : Text )", "Params": [ [ - "max", - "Integer", + "range", + "Text", "->" ] ], "Summary": "" }, - "status()": { - "Syntax": "**.status**()->status : Object", + "enableStopButton()": { + "Syntax": "**.enableStopButton**( *enable* : Object )", "Params": [ [ - "status", + "enable", "Object", - "<-" + "->" ] ], "Summary": "" }, - "executeCommand()": { - "Syntax": "**.executeCommand**( *command* : Text ) : Object", + "version()": { + "Syntax": "**.version**()->data : Object", "Params": [ [ - "command", - "Text", - "->" - ], - [ - "", + "data", "Object", "<-" ] ], "Summary": "" }, - "deleteFile()": { - "Syntax": "**.deleteFile**( *targetpath* : Text )->success : Object", + "getDirectoryListing()": { + "Syntax": "**.getDirectoryListing**( *targetpath* : Text )->success : Object", "Params": [ [ "targetpath", @@ -610,8 +525,13 @@ ], "Summary": "" }, - "download()": { - "Syntax": "**.download**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "onData": { + "Syntax": "onData : Object" + } + }, + "FileTransfer_GDrive": { + "renameFile()": { + "Syntax": "**.renameFile**( *sourcepath* : Text; *targetpath* : Text ) : Object", "Params": [ [ "sourcepath", @@ -624,15 +544,26 @@ "->" ], [ - "success", + "", "Object", "<-" ] ], "Summary": "" }, + "wait()": { + "Syntax": "**.wait**( *max* : Integer )", + "Params": [ + [ + "max", + "Integer", + "->" + ] + ], + "Summary": "" + }, "upload()": { - "Syntax": "**.upload**( *sourcepath* : Text; *targetpath* : Text; *append* : Boolean )->success : Object", + "Syntax": "**.upload**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ "sourcepath", @@ -644,11 +575,6 @@ "Text", "->" ], - [ - "append", - "Boolean", - "->" - ], [ "success", "Object", @@ -657,6 +583,17 @@ ], "Summary": "" }, + "setTimeout()": { + "Syntax": "**.setTimeout**( *timeout* : Integer )", + "Params": [ + [ + "timeout", + "Integer", + "->" + ] + ], + "Summary": "" + }, "useCallback()": { "Syntax": "**.useCallback**( *callback* : 4D.Function; *ID* : Text )", "Params": [ @@ -673,41 +610,56 @@ ], "Summary": "" }, - "version()": { - "Syntax": "**.version**()->data : Object", + "executeCommand()": { + "Syntax": "**.executeCommand**( *command* : Text )->success : Object", "Params": [ [ - "data", + "command", + "Text", + "->" + ], + [ + "success", "Object", "<-" ] ], "Summary": "" }, - "setRange()": { - "Syntax": "**.setRange**( *range* : Text )", + "setPath()": { + "Syntax": "**.setPath**( *path* : Text )", "Params": [ [ - "range", + "path", "Text", "->" ] ], "Summary": "" }, - "enableStopButton()": { - "Syntax": "**.enableStopButton**( *enable* : Object )", + "copyFile()": { + "Syntax": "**.copyFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ - "enable", - "Object", + "sourcepath", + "Text", + "->" + ], + [ + "targetpath", + "Text", "->" + ], + [ + "success", + "Object", + "<-" ] ], "Summary": "" }, - "renameFile()": { - "Syntax": "**.renameFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "moveFile()": { + "Syntax": "**.moveFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ "sourcepath", @@ -727,46 +679,39 @@ ], "Summary": "" }, - "enableProgressData()": { - "Syntax": "**.enableProgressData**( *enable* : Boolean )", + "download()": { + "Syntax": "**.download**( *sourcepath* : Text; *targetpath* : Text; *sourceID* : Text; *sourceQuery* : Text ) : Object", "Params": [ [ - "enable", - "Boolean", + "sourcepath", + "Text", "->" - ] - ], - "Summary": "" - }, - "setPath()": { - "Syntax": "**.setPath**( *path* : Text )", - "Params": [ + ], [ - "path", + "targetpath", "Text", "->" - ] - ], - "Summary": "" - }, - "setActiveMode()": { - "Syntax": "**.setActiveMode**( *active* : Boolean; *IP* : Text )", - "Params": [ + ], [ - "active", - "Boolean", + "sourceID", + "Text", "->" ], [ - "IP", + "sourceQuery", "Text", "->" + ], + [ + "", + "Object", + "<-" ] ], "Summary": "" }, - "getDirectoryListing()": { - "Syntax": "**.getDirectoryListing**( *targetpath* : Text )->success : Object", + "deleteDirectory()": { + "Syntax": "**.deleteDirectory**( *targetpath* : Text; *force* : Boolean ) : Object", "Params": [ [ "targetpath", @@ -774,54 +719,89 @@ "->" ], [ - "success", + "force", + "Boolean", + "->" + ], + [ + "", "Object", "<-" ] ], "Summary": "" }, - "setAutoCreateLocalDirectory()": { - "Syntax": "**.setAutoCreateLocalDirectory**( *auto* : Boolean )", + "setAsyncMode()": { + "Syntax": "**.setAsyncMode**( *async* : Boolean )", "Params": [ [ - "auto", + "async", "Boolean", "->" ] ], "Summary": "" }, - "setTimeout()": { - "Syntax": "**.setTimeout**( *timeout* : Integer )", + "createDirectory()": { + "Syntax": "**.createDirectory**( *targetpath* : Text ) : Object", "Params": [ [ - "timeout", - "Integer", + "targetpath", + "Text", "->" + ], + [ + "", + "Object", + "<-" ] ], "Summary": "" }, - "setAsyncMode()": { - "Syntax": "**.setAsyncMode**( *async* : Boolean )", + "import()": { + "Syntax": "**.import**( *sourcepath* : Text; *targetpath* : Text; *mime* : Text ) : Object", "Params": [ [ - "async", - "Boolean", + "sourcepath", + "Text", "->" + ], + [ + "targetpath", + "Text", + "->" + ], + [ + "mime", + "Text", + "->" + ], + [ + "", + "Object", + "<-" ] ], "Summary": "" }, - "deleteDirectory()": { - "Syntax": "**.deleteDirectory**( *targetpath* : Text )->success : Object", + "getDirectoryListing()": { + "Syntax": "**.getDirectoryListing**( *targetpath* : Text; *ID* : Text; *max* : Integer )->success : Object", "Params": [ [ "targetpath", "Text", "->" ], + [ + "ID", + "Text", + "->" + ], + [ + "max", + "Integer", + "->" + ], [ "success", "Object", @@ -830,46 +810,44 @@ ], "Summary": "" }, - "setCurlPrefix()": { - "Syntax": "**.setCurlPrefix**( *prefix* : Text )", + "export()": { + "Syntax": "**.export**( *sourcepath* : Text; *targetpath* : Text; *sourceID* : Text; *mime* : Text ) : Object", "Params": [ [ - "prefix", + "sourcepath", + "Text", + "->" + ], + [ + "targetpath", + "Text", + "->" + ], + [ + "sourceID", "Text", "->" - ] - ], - "Summary": "" - }, - "setMaxTime()": { - "Syntax": "**.setMaxTime**( *seconds* : Real )", - "Params": [ + ], [ - "seconds", - "Real", + "mime", + "Text", "->" - ] - ], - "Summary": "" - }, - "validate()": { - "Syntax": "**.validate**()->success : Object", - "Params": [ + ], [ - "success", + "", "Object", "<-" ] ], "Summary": "" }, - "setConnectTimeout()": { - "Syntax": "**.setConnectTimeout**( *seconds* : Real )", + "status()": { + "Syntax": "**.status**()->status : Object", "Params": [ [ - "seconds", - "Real", - "->" + "status", + "Object", + "<-" ] ], "Summary": "" @@ -879,8 +857,8 @@ "Params": [], "Summary": "" }, - "createDirectory()": { - "Syntax": "**.createDirectory**( *targetpath* : Text )->success : Object", + "deleteFile()": { + "Syntax": "**.deleteFile**( *targetpath* : Text ) : Object", "Params": [ [ "targetpath", @@ -888,62 +866,57 @@ "->" ], [ - "success", + "", "Object", "<-" ] ], "Summary": "" }, - "setAutoCreateRemoteDirectory()": { - "Syntax": "**.setAutoCreateRemoteDirectory**( *auto* : Boolean )", + "enableStopButton()": { + "Syntax": "**.enableStopButton**( *enable* : Object )", "Params": [ [ - "auto", - "Boolean", + "enable", + "Object", "->" ] ], "Summary": "" }, - "onData": { - "Syntax": "onData : Object" - } - }, - "FileTransfer_Dropbox": { - "status()": { - "Syntax": "**.status**()->status : Object", + "version()": { + "Syntax": "**.version**()->data : Object", "Params": [ [ - "status", + "data", "Object", "<-" ] ], "Summary": "" }, - "stop()": { - "Syntax": "**.stop**()", - "Params": [], - "Summary": "" - }, - "enableStopButton()": { - "Syntax": "**.enableStopButton**( *enable* : Object )", + "onData": { + "Syntax": "onData : Object" + } + }, + "FileTransfer_Dropbox": { + "wait()": { + "Syntax": "**.wait**( *max* : Integer )", "Params": [ [ - "enable", - "Object", + "max", + "Integer", "->" ] ], "Summary": "" }, - "setAsyncMode()": { - "Syntax": "**.setAsyncMode**( *async* : Boolean )", + "setTimeout()": { + "Syntax": "**.setTimeout**( *timeout* : Integer )", "Params": [ [ - "async", - "Boolean", + "timeout", + "Integer", "->" ] ], @@ -976,21 +949,32 @@ ], "Summary": "" }, - "deleteDirectory()": { - "Syntax": "**.deleteDirectory**( *targetpath* : Text; *force* : Boolean ) : Object", + "enableStopButton()": { + "Syntax": "**.enableStopButton**( *enable* : Object )", "Params": [ [ - "targetpath", + "enable", + "Object", + "->" + ] + ], + "Summary": "" + }, + "download()": { + "Syntax": "**.download**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "Params": [ + [ + "sourcepath", "Text", "->" ], [ - "force", - "Boolean", + "targetpath", + "Text", "->" ], [ - "", + "success", "Object", "<-" ] @@ -1008,8 +992,8 @@ ], "Summary": "" }, - "moveFile()": { - "Syntax": "**.moveFile**( *sourcepath* : Text; *targetpath* : Text ) : Object", + "renameFile()": { + "Syntax": "**.renameFile**( *sourcepath* : Text; *targetpath* : Text ) : Object", "Params": [ [ "sourcepath", @@ -1029,35 +1013,35 @@ ], "Summary": "" }, - "renameFile()": { - "Syntax": "**.renameFile**( *sourcepath* : Text; *targetpath* : Text ) : Object", + "executeCommand()": { + "Syntax": "**.executeCommand**( *command* : Text )->success : Object", "Params": [ [ - "sourcepath", - "Text", - "->" - ], - [ - "targetpath", + "command", "Text", "->" ], [ - "", + "success", "Object", "<-" ] ], "Summary": "" }, - "createDirectory()": { - "Syntax": "**.createDirectory**( *targetpath* : Text ) : Object", + "deleteDirectory()": { + "Syntax": "**.deleteDirectory**( *targetpath* : Text; *force* : Boolean ) : Object", "Params": [ [ "targetpath", "Text", "->" ], + [ + "force", + "Boolean", + "->" + ], [ "", "Object", @@ -1066,14 +1050,25 @@ ], "Summary": "" }, - "copyFile()": { - "Syntax": "**.copyFile**( *sourcepath* : Text; *targetpath* : Text ) : Object", + "status()": { + "Syntax": "**.status**()->status : Object", "Params": [ [ - "sourcepath", - "Text", - "->" - ], + "status", + "Object", + "<-" + ] + ], + "Summary": "" + }, + "stop()": { + "Syntax": "**.stop**()", + "Params": [], + "Summary": "" + }, + "deleteFile()": { + "Syntax": "**.deleteFile**( *targetpath* : Text ) : Object", + "Params": [ [ "targetpath", "Text", @@ -1087,8 +1082,8 @@ ], "Summary": "" }, - "download()": { - "Syntax": "**.download**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "moveFile()": { + "Syntax": "**.moveFile**( *sourcepath* : Text; *targetpath* : Text ) : Object", "Params": [ [ "sourcepath", @@ -1101,31 +1096,26 @@ "->" ], [ - "success", + "", "Object", "<-" ] ], "Summary": "" }, - "executeCommand()": { - "Syntax": "**.executeCommand**( *command* : Text )->success : Object", + "setAsyncMode()": { + "Syntax": "**.setAsyncMode**( *async* : Boolean )", "Params": [ [ - "command", - "Text", + "async", + "Boolean", "->" - ], - [ - "success", - "Object", - "<-" ] ], "Summary": "" }, - "deleteFile()": { - "Syntax": "**.deleteFile**( *targetpath* : Text ) : Object", + "createDirectory()": { + "Syntax": "**.createDirectory**( *targetpath* : Text ) : Object", "Params": [ [ "targetpath", @@ -1140,8 +1130,8 @@ ], "Summary": "" }, - "upload()": { - "Syntax": "**.upload**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "copyFile()": { + "Syntax": "**.copyFile**( *sourcepath* : Text; *targetpath* : Text ) : Object", "Params": [ [ "sourcepath", @@ -1154,31 +1144,30 @@ "->" ], [ - "success", + "", "Object", "<-" ] ], "Summary": "" }, - "wait()": { - "Syntax": "**.wait**( *max* : Integer )", + "upload()": { + "Syntax": "**.upload**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ - "max", - "Integer", + "sourcepath", + "Text", "->" - ] - ], - "Summary": "" - }, - "setTimeout()": { - "Syntax": "**.setTimeout**( *timeout* : Integer )", - "Params": [ + ], [ - "timeout", - "Integer", + "targetpath", + "Text", "->" + ], + [ + "success", + "Object", + "<-" ] ], "Summary": "" @@ -1203,7 +1192,7 @@ "Syntax": "onData : Object" } }, - "FileTransfer_GDrive": { + "FileTransfer_rclone": { "status()": { "Syntax": "**.status**()->status : Object", "Params": [ @@ -1215,39 +1204,56 @@ ], "Summary": "" }, - "createDirectory()": { - "Syntax": "**.createDirectory**( *targetpath* : Text ) : Object", + "useCallback()": { + "Syntax": "**.useCallback**( *callback* : 4D.Function; *ID* : Text )", "Params": [ [ - "targetpath", - "Text", + "callback", + "4D.Function", "->" ], [ - "", - "Object", - "<-" + "ID", + "Text", + "->" ] ], "Summary": "" }, - "stop()": { - "Syntax": "**.stop**()", - "Params": [], + "setPrefix()": { + "Syntax": "**.setPrefix**( *prefix* : Text )", + "Params": [ + [ + "prefix", + "Text", + "->" + ] + ], "Summary": "" }, - "useCallback()": { - "Syntax": "**.useCallback**( *callback* : 4D.Function; *ID* : Text )", + "setMaxTime()": { + "Syntax": "**.setMaxTime**( *seconds* : Real )", "Params": [ [ - "callback", - "4D.Function", + "seconds", + "Real", + "->" + ] + ], + "Summary": "" + }, + "executeCommand()": { + "Syntax": "**.executeCommand**( *command* : Text )->success : Object", + "Params": [ + [ + "command", + "Text", "->" ], [ - "ID", - "Text", - "->" + "success", + "Object", + "<-" ] ], "Summary": "" @@ -1263,11 +1269,16 @@ ], "Summary": "" }, - "executeCommand()": { - "Syntax": "**.executeCommand**( *command* : Text )->success : Object", + "upload()": { + "Syntax": "**.upload**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ - "command", + "sourcepath", + "Text", + "->" + ], + [ + "targetpath", "Text", "->" ], @@ -1279,30 +1290,46 @@ ], "Summary": "" }, - "enableStopButton()": { - "Syntax": "**.enableStopButton**( *enable* : Object )", + "validate()": { + "Syntax": "**.validate**()->success : Object", "Params": [ [ - "enable", + "success", "Object", + "<-" + ] + ], + "Summary": "" + }, + "setTimeout()": { + "Syntax": "**.setTimeout**( *timeout* : Integer )", + "Params": [ + [ + "timeout", + "Integer", "->" ] ], "Summary": "" }, - "version()": { - "Syntax": "**.version**()->data : Object", + "obscure()": { + "Syntax": "**.obscure**( *password* : Text )->obscured : Text", "Params": [ [ - "data", - "Object", + "password", + "Text", + "->" + ], + [ + "obscured", + "Text", "<-" ] ], "Summary": "" }, - "moveFile()": { - "Syntax": "**.moveFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "download()": { + "Syntax": "**.download**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ "sourcepath", @@ -1323,7 +1350,7 @@ "Summary": "" }, "deleteDirectory()": { - "Syntax": "**.deleteDirectory**( *targetpath* : Text; *force* : Boolean ) : Object", + "Syntax": "**.deleteDirectory**( *targetpath* : Text; *force* : Boolean )->success : Object", "Params": [ [ "targetpath", @@ -1336,15 +1363,15 @@ "->" ], [ - "", + "success", "Object", "<-" ] ], "Summary": "" }, - "copyFile()": { - "Syntax": "**.copyFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "moveFile()": { + "Syntax": "**.moveFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ "sourcepath", @@ -1375,29 +1402,24 @@ ], "Summary": "" }, - "renameFile()": { - "Syntax": "**.renameFile**( *sourcepath* : Text; *targetpath* : Text ) : Object", + "createDirectory()": { + "Syntax": "**.createDirectory**( *targetpath* : Text )->success : Object", "Params": [ - [ - "sourcepath", - "Text", - "->" - ], [ "targetpath", "Text", "->" ], [ - "", + "success", "Object", "<-" ] ], "Summary": "" }, - "export()": { - "Syntax": "**.export**( *sourcepath* : Text; *targetpath* : Text; *sourceID* : Text; *mime* : Text ) : Object", + "syncDown()": { + "Syntax": "**.syncDown**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ "sourcepath", @@ -1410,25 +1432,15 @@ "->" ], [ - "sourceID", - "Text", - "->" - ], - [ - "mime", - "Text", - "->" - ], - [ - "", + "success", "Object", "<-" ] ], "Summary": "" }, - "download()": { - "Syntax": "**.download**( *sourcepath* : Text; *targetpath* : Text; *sourceID* : Text; *sourceQuery* : Text ) : Object", + "copyFile()": { + "Syntax": "**.copyFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ "sourcepath", @@ -1441,25 +1453,41 @@ "->" ], [ - "sourceID", + "success", + "Object", + "<-" + ] + ], + "Summary": "" + }, + "syncUp()": { + "Syntax": "**.syncUp**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "Params": [ + [ + "sourcepath", "Text", "->" ], [ - "sourceQuery", + "targetpath", "Text", "->" ], [ - "", + "success", "Object", "<-" ] ], "Summary": "" }, + "stop()": { + "Syntax": "**.stop**()", + "Params": [], + "Summary": "" + }, "deleteFile()": { - "Syntax": "**.deleteFile**( *targetpath* : Text ) : Object", + "Syntax": "**.deleteFile**( *targetpath* : Text )->success : Object", "Params": [ [ "targetpath", @@ -1467,67 +1495,48 @@ "->" ], [ - "", + "success", "Object", "<-" ] ], "Summary": "" }, - "getDirectoryListing()": { - "Syntax": "**.getDirectoryListing**( *targetpath* : Text; *ID* : Text; *max* : Integer )->success : Object", + "enableStopButton()": { + "Syntax": "**.enableStopButton**( *enable* : Object )", "Params": [ [ - "targetpath", - "Text", - "->" - ], - [ - "ID", - "Text", - "->" - ], - [ - "max", - "Integer", + "enable", + "Object", "->" - ], + ] + ], + "Summary": "" + }, + "version()": { + "Syntax": "**.version**()->data : Object", + "Params": [ [ - "success", + "data", "Object", "<-" ] ], "Summary": "" }, - "import()": { - "Syntax": "**.import**( *sourcepath* : Text; *targetpath* : Text; *mime* : Text ) : Object", + "wait()": { + "Syntax": "**.wait**( *max* : Integer )", "Params": [ [ - "sourcepath", - "Text", - "->" - ], - [ - "targetpath", - "Text", - "->" - ], - [ - "mime", - "Text", + "max", + "Integer", "->" - ], - [ - "", - "Object", - "<-" ] ], "Summary": "" }, - "upload()": { - "Syntax": "**.upload**( *sourcepath* : Text; *targetpath* : Text )->success : Object", + "renameFile()": { + "Syntax": "**.renameFile**( *sourcepath* : Text; *targetpath* : Text )->success : Object", "Params": [ [ "sourcepath", @@ -1547,30 +1556,21 @@ ], "Summary": "" }, - "wait()": { - "Syntax": "**.wait**( *max* : Integer )", + "getDirectoryListing()": { + "Syntax": "**.getDirectoryListing**( *targetpath* : Text )->success : Object", "Params": [ [ - "max", - "Integer", + "targetpath", + "Text", "->" - ] - ], - "Summary": "" - }, - "setTimeout()": { - "Syntax": "**.setTimeout**( *timeout* : Integer )", - "Params": [ + ], [ - "timeout", - "Integer", - "->" + "success", + "Object", + "<-" ] ], "Summary": "" - }, - "onData": { - "Syntax": "onData : Object" } }, "_Build": { @@ -1621,20 +1621,35 @@ ], "Summary": "" }, - "getSourcePath()": { - "Syntax": "**.getSourcePath**()->source : Text", + "Zip()": { + "Syntax": "**.Zip**( *source* : Text; *target* : Text )->error : Object", "Params": [ [ "source", "Text", + "->" + ], + [ + "target", + "Text", + "->" + ], + [ + "error", + "Object", "<-" ] ], "Summary": "" }, - "StapleAndZip()": { - "Syntax": "**.StapleAndZip**()->error : Object", + "Staple()": { + "Syntax": "**.Staple**( *path* : Text )->error : Object", "Params": [ + [ + "path", + "Text", + "->" + ], [ "error", "Object", @@ -1643,14 +1658,9 @@ ], "Summary": "" }, - "Notarize()": { - "Syntax": "**.Notarize**( *zipfilepath* : Text )->error : Object", + "StapleAndZip()": { + "Syntax": "**.StapleAndZip**()->error : Object", "Params": [ - [ - "zipfilepath", - "Text", - "->" - ], [ "error", "Object", @@ -1659,11 +1669,11 @@ ], "Summary": "" }, - "Build()": { - "Syntax": "**.Build**( *PathToSettings* : Text )->error : Object", + "Notarize()": { + "Syntax": "**.Notarize**( *zipfilepath* : Text )->error : Object", "Params": [ [ - "PathToSettings", + "zipfilepath", "Text", "->" ], @@ -1675,16 +1685,11 @@ ], "Summary": "" }, - "Zip()": { - "Syntax": "**.Zip**( *source* : Text; *target* : Text )->error : Object", + "Build()": { + "Syntax": "**.Build**( *PathToSettings* : Text )->error : Object", "Params": [ [ - "source", - "Text", - "->" - ], - [ - "target", + "PathToSettings", "Text", "->" ], @@ -1696,17 +1701,12 @@ ], "Summary": "" }, - "Staple()": { - "Syntax": "**.Staple**( *path* : Text )->error : Object", + "getSourcePath()": { + "Syntax": "**.getSourcePath**()->source : Text", "Params": [ [ - "path", + "source", "Text", - "->" - ], - [ - "error", - "Object", "<-" ] ],