createDirectory

abstract suspend fun createDirectory(name: String, parentId: String? = null, shareId: String? = null)

Creates a directory with the name in the specified parent directory with the parentId.

Parameters

name

Name of the new directory.

parentId

Id of the parent directory in which the directory will be created.

shareId

Id of the shared link within which the directory will be created. It is necessary that the parent directory contains the same link.

Throws

When session is not active.

Parent directory is not found.

Forbidden access.

Unauthorized access.