File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ Function upload($sourcepath : Text; $targetpath : Text; $append : Boolean)->$suc
9595 // If the remote file does not exist, it will be created.
9696 // Note that this flag is ignored by some SFTP servers (including OpenSSH).
9797 ASSERT:C1129 ($sourcepath # "" ; "source path must not be empty" )
98+ $doublequotes := Char:C90 (Double quote:K15:41 )
9899 If ($targetpath= "")
99100 $targetpath := "/"
100101 End if
@@ -105,7 +106,7 @@ Function upload($sourcepath : Text; $targetpath : Text; $append : Boolean)->$suc
105106 If ((This:C1470 ._AutoCreateRemoteDir # Null:C1517) && (This:C1470 ._AutoCreateRemoteDir ))
106107 $url := "--ftp-create-dirs " + $url
107108 End if
108- $url := "-T " + $sourcepath + " " + $url + $targetpath
109+ $url := "-T " + $doublequotes + $ sourcepath+ $doublequotes + " " + $url + $doublequotes + $ targetpath+ $doublequotes
109110 $oldtimeout := This:C1470 ._timeout
110111 If ($oldtimeout= 0)
111112 This:C1470 ._timeout := 600
You can’t perform that action at this time.
0 commit comments