Hi @Leonidas,Thanks for your reply ,but the main purpose I want to achieve is moving the specific assets to another folder,the code above is just select one folder in editor if I am not wrong
You can also try and step through the editor.js code with debugger and see what happens when you move an asset using drag and drop in editor. To see what exact methods are being called.
I do not recommend you use these functions because they are likely to change without notice. BUT I believe the current way to do this is: editor.call('assets:fs:move', assets, folderAsset);
Do not modify path value of the asset, as it might lead to unwanted results, as asset might be “out” of filesystem. It will still exist and be accessible through list, as all assets stored in flat maner.
In order to make any filesystem operations, such as moving assets (those are files and folders), or deleting them, you should use methods as @vaios mentioned:
To move assets to root directory, use null instead of folderAsset.