Create file or folder
nekoweb_createCreates a new empty file or folder at a given path on your Nekoweb site, failing if something already exists there. Use it to set up directories or blank files before writing content.
Instructions
Create a new empty file or a new folder on your Nekoweb site. Fails if something already exists at that path.
To create a file with content in one step, use nekoweb_write_file instead.
Examples:
"Make a blog folder" -> { path: "/mysite.nekoweb.org/blog", is_folder: true }
"Create an empty robots.txt" -> { path: "/mysite.nekoweb.org/robots.txt", is_folder: false }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path from the account's file root, including the site folder, e.g. '/mysite.nekoweb.org/blog' | |
| is_folder | Yes | true to create a folder, false to create an empty file |