# Creating Directories

Creating a directory in osl is very simple, you just have to make a file at the directory you want to create. However, it does require permissions (or get the user to place you in the applications folder).

```javascript
file "goto_dir" "user/documents/my new folder"
// we go to the directory that we want to create
// this directory doesnt exist yet

file "set_file" "hello.txt" "hello world"
// create our hello world file at the current folder
// this command will build the .folder files that are nessecary to have this directory
```

In OSL, create a file at your target location to automatically generate the directory structure.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://osl.mistium.com/environment/files/creating-directories.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
