Matterway
    Preparing search index...

    Function fileToDrive

    • Writes a file to the local drive.

      Parameters

      • file: SdkFile

        The SdkFile object containing the data to write.

      • filepath: string

      Returns Promise<void>

      Promise of void

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