Skip to content

Commit 5f3a745

Browse files
committed
progress test on Mac
1 parent 151426d commit 5f3a745

14 files changed

Lines changed: 493 additions & 306 deletions

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
*.4dd
2+
*.4DD
3+
*.journal
24
*.4DIndx
35
*.Match
46
Logs
57
Project/DerivedData
68
*symbols.txt
79
userPreferences.*
8-
Libraries/
10+
Libraries/
11+
Data/

Data/data.4DD

0 Bytes
Binary file not shown.

Data/data.journal

88 Bytes
Binary file not shown.

Project/DerivedData/formAttributes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"forms": {
33
"test": {
4-
"timeStamp": "2022-02-08T08:21:03.107Z",
4+
"timeStamp": "2022-02-08T10:57:37.058Z",
55
"destination": "detailScreen"
66
}
77
}
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
22
"methods": {
3-
"ErrorHandler": {
4-
"timeStamp": "2022-02-08T07:07:20.191Z"
3+
"test3": {
4+
"timeStamp": "2022-02-08T11:01:26.406Z"
55
},
6-
"ProgressCallback": {
7-
"timeStamp": "2022-02-08T10:49:59.906Z"
6+
"test2": {
7+
"timeStamp": "2022-02-08T10:57:37.060Z"
88
},
99
"test": {
10-
"timeStamp": "2022-02-08T08:21:02.873Z"
10+
"timeStamp": "2022-02-08T10:57:37.058Z"
1111
},
12-
"test2": {
13-
"timeStamp": "2022-02-08T08:21:03.185Z"
12+
"Worker_ProgressBar": {
13+
"timeStamp": "2022-02-03T11:10:33.458Z"
1414
},
15-
"test3": {
16-
"timeStamp": "2022-02-08T09:26:21.203Z"
15+
"ErrorHandler": {
16+
"timeStamp": "2022-02-03T10:50:18.425Z"
1717
},
18-
"Worker_ProgressBar": {
19-
"timeStamp": "2022-02-08T07:07:20.194Z"
18+
"ProgressCallback": {
19+
"timeStamp": "2022-02-08T10:57:37.058Z"
2020
}
2121
}
2222
}

Project/Sources/Methods/test3.4dm

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
//%attributes = {}
2-
$credentialspath:=Get 4D folder:C485(Database folder:K5:14)
3-
$folder:=Folder:C1567($credentialspath; fk platform path:K87:2)
4-
$credentialsfile:=$folder.parent.file("credentials.txt").getText()
5-
$credentials:=JSON Parse:C1218($credentialsfile)
6-
If (True:C214)
7-
$credentials.url:="192.168.10.54:3421"
8-
End if
9-
10-
var $ftp : cs:C1710.FileTransfer
11-
$ftp:=cs:C1710.FileTransfer.new($credentials.url; $credentials.user; $credentials.pass; "ftp")
12-
//$ftp.setCurlPath("/opt/homebrew/opt/curl/bin/curl")
13-
$ftp.setConnectTimeout(5)
14-
15-
$ftp.useCallback(Formula:C1597(ProgressCallback); "ProgressCallback")
16-
$source:="/large/4D.dmg"
17-
18-
$target:=System folder:C487(Desktop:K41:16)+"neu"+Folder separator:K24:12
19-
$target:=Convert path system to POSIX:C1106($target)
20-
$result:=$ftp.download($source; $target)
21-
If ($result.success)
22-
$answer:=$result.data
1+
//%attributes = {}
2+
$credentialspath:=Get 4D folder:C485(Database folder:K5:14)
3+
$folder:=Folder:C1567($credentialspath; fk platform path:K87:2)
4+
$credentialsfile:=$folder.parent.file("credentials.txt").getText()
5+
$credentials:=JSON Parse:C1218($credentialsfile)
6+
If (True:C214)
7+
$credentials.url:="192.168.10.54:3421"
8+
End if
9+
10+
var $ftp : cs:C1710.FileTransfer
11+
$ftp:=cs:C1710.FileTransfer.new($credentials.url; $credentials.user; $credentials.pass; "ftp")
12+
//$ftp.setCurlPath("/opt/homebrew/opt/curl/bin/curl")
13+
$ftp.setConnectTimeout(5)
14+
15+
$ftp.useCallback(Formula:C1597(ProgressCallback); "ProgressCallback")
16+
$source:="/large/4D.dmg"
17+
18+
$target:=System folder:C487(Desktop:K41:16)+"neu"+Folder separator:K24:12
19+
$target:=Convert path system to POSIX:C1106($target)
20+
$result:=$ftp.download($source; $target)
21+
If ($result.success)
22+
$answer:=$result.data
2323
End if

0 commit comments

Comments
 (0)