$fn.createFolder(path)
Creates a folder in the specified path. "asynchronous"
Arguments
Name | Type | Description |
---|---|---|
path | string | Path of the folder to be created |
Return value
None
Sample
try { await $fn.createFolder('/folder1');} catch (err) { console.log("Error", err);}
$fn.createGroup(param)
Add an authorization group for the application. "asynchronous"
Arguments
Name | Type | Description |
---|---|---|
param | object | Group information to be registered |
parameters details
Property | Type | Description |
---|---|---|
groupName | string | Group Name |
description | string | Details |
Return value
Type | Description |
---|---|
Promise<Group> | Registered Group Information |
Object | Property | Type | Description |
---|---|---|---|
Group | groupName | string | Group Name |
description | string | Description | |
members | object array | Active user array belonging to group |
Sample
const groupName = $ui.groupName.value;const description = $ui.description.value;try { await $fn.createGroup({ groupName: groupName, description: description });} catch (err) { console.log("Error", err);}