Filemanager rename folder to existing folder name - tree not updated

When a folder is renamed with an existing folder name (same level) then the tree does not update with the response value of the rename handler.

for example:

This folder contains two sub folders:

{
  "parent": "3102564",
  "data": [
    {
      "value": "123",
      "type": "folder",
      "size": 0,
      "date": 1527477498,
      "id": "3102570",
      "webix_branch": 1,
      "open": true
    },
    {
      "value": "asd",
      "type": "folder",
      "size": 0,
      "date": 1527477498,
      "id": "3102576",
      "webix_branch": 1,
      "open": true
    }
  ]
}

I try to rename ‘123’ to ‘asd’:

action	rename
source	3102570
target	asd

response from the rename handler (the original value is returned - indicating that the rename was not successful):

{
  "id": "3102570",
  "value": "123"
}

The tree shows the folder name is now asd, and the browser pane and the navigation bar shows the folder name is 123.

Also, I noticed that you can create multiple ‘new folders’, even if it already exists.

You can test this on the filemanager demo

https://webix.com/demos/filemanager.html#!/files

I think the handlers should be able to return “false” or something to stop the UI from creating/renaming existing things.

Hello,

It is supposed that the server side should care about unique file and folder names, not the UI.

Please, check the following sample: https://docs.webix.com/samples/64_file_manager/01_basic/04_operations.html#!//, but run it locally from the downloaded package. You will see that server returns a unique name during renaming or creating folders (newFolder1, newFolder2, etc.) and the FileManager correctly applies it.

For the samples we use PHP backend, but for sure you can connect any - Webix is backend-independent.