Function fileToDrive

  • Writes a file to the local drive.

    Parameters

    • file: SdkFile

      The SdkFile object containing the data to write.

    • path: string

      The path of the file to write.

    Returns Promise<void>

    Promise of void

    Example

    const file = { name: 'example.txt', data: 'SGVsbG8gV29ybGQh', type: 'text/plain' };
    const path = 'documents/';
    await fileToDrive(file, path);

Generated using TypeDoc