Rename File or Directory - (by Felice Di Stefano)
(ASP and PHP support)
This behavior will insert a code block to rename a file or directory using a form or not. Usually you can rename a file inserting the origin path and destination path in form elements triggered by a form button but you may make it happen dynamically when page loads depending on the value of sources.
Setting up
| Form Name: | Select the form you are using. Don't bother it if you are not using a form. |
| Origin Elem: | Define here the form element or source used for the path of the file to be renamed. |
| Destination Elem: | Define here the form element or source used for the destination path. That is, the path with the new name. |
| Trigger: | Define here the form element (button) or source which will trigger the action. |
| Failed Msg: | Only for PHP. Write a message to show in case the operation fails, reasons may be various like not enough permissions or else. In Asp a system message will be returned. |
| Not Exists Msg: | Only for PHP. Write a message to show in case the operation fails because the origin file does not exists. In Asp a system message will be returned. |
| Redirect To: | Define a redirection after operation if you wish. |
by FELIXONE