fires before a new folder has been created
id | string | the id of the target folder/file (where a new folder is going to be created) |
$$("fmanager").attachEvent("onBeforeCreateFolder",function(id){
// your code
return true;
});
Returning false within the handler function will prevent the execution of the further logic and the folder will not be created.