> TODO: description
npm install @flysystem-ts/google-drive-adapter@flysystem-ts/google-drive-adapter#### Import and construct example:
``ts
import { Flysystem } from '@flysystem-ts/flysystem';
import { GDriveAdapter } from '@flysystem-ts/google-drive-adapter';
import { join } from 'path';
import { google } from 'googleapis';
import 'dotenv/config';
async function example() {
const oaut2Client = {} // ... see documentation how make authentication in googleapis
const gDriveAdapter = new GoogleDriveAdapter(google.drive({ version: 'v3', auth: oauth2Client });
const flysystem = Filesystem.init(dropBoxAdapter);
}
`
#### Upload example:
`ts
import fs from 'fs';
async function upload(flysystem: Filesystem) {
const pathToFile = join(__dirname, 'relative/path/to/your/file.mp4');
await flysystem.uploadById(fs.readFileSync(pathToFile), {
name: 'cool.mp4',
});
}
``