Skip to main content

User Folder Creation

The API creates a folder named /CTHULHU/users if it doesn't already exist. Additionally, for each agent created, a user-specific folder is created within /CTHULHU/users.

Folder Structure

The folder structure is as follows:

  • /CTHULHU
    • /users
      • /<agentId_1>
      • /<agentId_2>
      • ...
      • /<agentId_n>

Folder Creation Process

When a new agent is created, the API performs the following steps:

  1. Checks if the /CTHULHU/users folder exists.
  2. If the folder doesn't exist, it is created.
  3. Creates a user-specific folder within /CTHULHU/users for the agent using the agent's ID.

Example

Let's assume that the API receives a request to create a new agent with the ID 123. Here's the folder creation process:

  1. The API checks if the /CTHULHU/users folder exists.
  2. If the folder doesn't exist, it creates the /CTHULHU/users folder.
  3. The API creates a user-specific folder named /CTHULHU/users/123 for the agent with ID 123.

The created folder structure would be:

  • /CTHULHU
    • /users
      • /123