Skip to content

Commit 99ddc9d

Browse files
committed
Correct SFTP commands
1 parent ead0481 commit 99ddc9d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Project/Sources/Classes/FileTransfer_curl.4dm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Function deleteDirectory($targetpath : Text)->$success : Object
192192
If (This:C1470._protocol#"SFTP")
193193
$url:=$url+" -Q "+Char:C90(34)+"RMD "+$targetpath+Char:C90(34)
194194
Else
195-
$url:=$url+" -Q "+Char:C90(34)+"-RMDIR "+$targetpath+Char:C90(34)
195+
$url:=$url+" -Q "+Char:C90(34)+"-rmdir "+$targetpath+Char:C90(34)
196196
End if
197197
$success:=This:C1470._runWorker($url)
198198
If ($success.success)
@@ -208,7 +208,7 @@ Function deleteFile($targetpath : Text)->$success : Object
208208
If (This:C1470._protocol#"SFTP")
209209
$url:=$url+" -Q "+Char:C90(34)+"DELE "+$targetpath+Char:C90(34)
210210
Else
211-
$url:=$url+" -Q "+Char:C90(34)+"-RM "+$targetpath+Char:C90(34)
211+
$url:=$url+" -Q "+Char:C90(34)+"-rm "+$targetpath+Char:C90(34)
212212
End if
213213
$success:=This:C1470._runWorker($url)
214214
If ($success.success)
@@ -225,7 +225,7 @@ Function renameFile($sourcepath : Text; $targetpath : Text)->$success : Object
225225
If (This:C1470._protocol#"SFTP")
226226
$url:=$url+" -Q "+Char:C90(34)+"-RNFR "+$sourcepath+Char:C90(34)+" -Q "+Char:C90(34)+"-RNTO "+$targetpath+Char:C90(34)
227227
Else
228-
$url:=$url+" -Q "+Char:C90(34)+"-RENAME "+$sourcepath+" "+$targetpath+Char:C90(34)
228+
$url:=$url+" -Q "+Char:C90(34)+"-rename "+$sourcepath+" "+$targetpath+Char:C90(34)
229229
End if
230230
$success:=This:C1470._runWorker($url)
231231
If ($success.success)

0 commit comments

Comments
 (0)