onBeforeCreateFolder

fires before a new folder has been created

void onBeforeCreateFolder(string id){ ... };

Parameters

idstringthe id of the target folder/file (where a new folder is going to be created)

Example

$$("fmanager").attachEvent("onBeforeCreateFolder",function(id){
    // your code
    return true;
});

Details

Returning false within the handler function will prevent the execution of the further logic and the folder will not be created.

See also
Back to top