createDirectory

Create a directory in the Pod’s filesystem

class BrowserPod {
async createDirectory(
path: string,
opts?: { recursive?: boolean }
): Promise<void>;
}

Parameters

  • path (string) - Path of the newly-created directory
  • opts (object, optional) - Creation options passed as an object

Options

  • recursive (boolean, optional) - Wether missing intermediate directory should be created or not.

Returns

createDirectory returns a Promise which is resolved when the operation has succeded. If the directory could not be created, the Promise will be rejected.

Was this page helpful?
Suggest changes