@inrupt/solid-client
    Preparing search index...

    Function createContainerInContainer

    • Create an empty Container inside the Container at the given URL.

      Throws an error if creating the Container failed, e.g. because the current user does not have permissions to.

      The Container in which to create the new Container should itself already exist.

      This function is primarily useful if the current user does not have access to change existing files in a Container, but is allowed to add new files; in other words, they have Append, but not Write access to a Container. This is useful in situations where someone wants to allow others to, for example, send notifications to their Pod, but not to view or delete existing notifications. You can pass a suggestion for the new Resource's name, but the server may decide to give it another name — for example, if a Resource with that name already exists inside the given Container. If the user does have access to write directly to a given location, [[createContainerAt]] will do the job just fine, and does not require the parent Container to exist in advance.

      Parameters

      • containerUrl: string | Url

        URL of the Container in which the empty Container is to be created.

      • Optionaloptions: SaveInContainerOptions

        Optional parameter options.fetch: An alternative fetch function to make the HTTP request, compatible with the browser-native fetch API.options.slugSuggestion accepts a string for your new Container's name.

      Returns Promise<Readonly<{}> & WithResourceInfo>

      A promise that resolves to a SolidDataset with ResourceInfo if successful, and that rejects otherwise.

      0.2.0