Skip to content

Commit 801ec21

Browse files
committed
updated renameFile which wasn’t working with ftps
from -cu to -RNFR
1 parent 5e74b89 commit 801ec21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Project/Sources/Classes/FileTransfer_curl.4dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Function renameFile($sourcepath : Text; $targetpath : Text)->$success : Object
193193
ASSERT:C1129($targetpath#""; "target path must not be empty")
194194
$url:=This:C1470._buildURL()
195195
If (This:C1470._protocol#"SFTP")
196-
$url:=$url+" -Q "+Char:C90(34)+"-cu "+$sourcepath+Char:C90(34)+" -Q "+Char:C90(34)+"-RNTO "+$targetpath+Char:C90(34)
196+
$url:=$url+" -Q "+Char:C90(34)+"-RNFR "+$sourcepath+Char:C90(34)+" -Q "+Char:C90(34)+"-RNTO "+$targetpath+Char:C90(34)
197197
Else
198198
$url:=$url+" -Q "+Char:C90(34)+"-RENAME "+$sourcepath+Char:C90(34)+" "+$targetpath+Char:C90(34)
199199
End if

0 commit comments

Comments
 (0)