createFolder
.create() is used to create a new file
.createFolder(SessionID, folder, name)
Create a new folder for a server
Parameter
Type
Required
Description
SessionID
string
true
The session ID that you want to perform this action on
folder
string
true
The folder that you wish to create the new folder in
name
string
true
The name of the folder you want to create
Example:
// Dependencies
const CubedCraft = require('cubed-api');
// Creating the folder
CubedCraft.files.createFolder('SessionID', '/plugins', 'Example Folder');
Last updated
Was this helpful?