# /fuse/mkdir/{channel}

> Kind 17: a directory, made; the server sends exactly one message and closes the connection.

Canonical: https://provider.diverge.network/2.3.0/proxy/fuse/mkdir/
Specification revision: 2.3.0

The ask is kind `17` on [`/requests`](/2.3.0/proxy/requests/):

```text
[17][id_len: u16, big-endian][id …][path …]
```

The server answers on `/fuse/mkdir/{channel}` by sending exactly one
message and closing the connection. In the message, a first byte of `0` states that the directory was made; a first byte of `1` is followed by a message stating why it was not.
A path that the proxy or the server closes cleanly with no message
before the close states that the ask was not served. An abrupt end of the path leaves the operation failed, and
the proxy does not ask it again, as [FUSE](/2.3.0/proxy/fuse/) provides.

- **Under an existing directory.** The path is not empty, and its
  parent is a directory the caller holds.

The ask is the target defined on [FUSE](/2.3.0/proxy/fuse/): the id of the mount and the path of the entry.

The answer is the ack defined on [FUSE](/2.3.0/proxy/fuse/).
