Writes a file to the local drive.
The SdkFile object containing the data to write.
SdkFile
Promise of void
const file = { name: 'example.txt', data: 'SGVsbG8gV29ybGQh', type: 'text/plain' };const path = 'documents';await fileToDrive(file, path); Copy
const file = { name: 'example.txt', data: 'SGVsbG8gV29ybGQh', type: 'text/plain' };const path = 'documents';await fileToDrive(file, path);
Writes a file to the local drive.