WebClient: fix move and copy

Regression introduced in fc023748c1

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-04-01 12:00:06 +02:00
parent db577b154e
commit 1620e16b89
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -1470,9 +1470,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
let filesArray = [];
for (let i = 0; i < items.length; i++){
filesArray.push({
name: items[i].targetName
});
filesArray.push(items[i].targetName);
}
CheckExist.fire({
@ -1622,9 +1620,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
let filesArray = [];
for (let i = 0; i < items.length; i++){
filesArray.push({
name: items[i].targetName
});
filesArray.push(items[i].targetName);
}
CheckExist.fire({
@ -1863,7 +1859,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
CheckExist.fire({
operation: "move",
files: [{name: newName}],
files: [newName],
path: '{{.CurrentDir}}'
}).then((result)=>{
if (result.error) {