Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gravixlayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

from gravixlayer import GravixLayer

client = GravixLayer()
runtime = client.runtime.create(template="python-3.14-base-small")

response = runtime.file.create_directory(
    "/workspace/projects/demo",
    recursive=True,
    mode="755",
)
print(response.message)
print(response.path)

runtime.kill()
recursive defaults to true (equivalent to mkdir -p). mode is an optional chmod-style octal string (e.g. "755" or "0755").

Parameters

ParameterTypeRequiredDescription
pathstringYesDirectory path to create
recursivebooleanNoCreate parent directories (default: True)
modestringNoOctal directory mode, e.g. "755"

Response

FieldTypeDescription
messagestringConfirmation message
pathstringCreated directory path
successbooleanPresent when returned by the API