# API Reference

> API reference for @anymux/google-drive.

Source: https://anymux-docs.n.yatsyk.com/docs/google-drive/api

# API Reference

## `GoogleDriveFileSystem`

Implements `IFileSystem` using the Google Drive API.

### Constructor

```ts
new GoogleDriveFileSystem(options: GoogleDriveFileSystemOptions)
```

### Options

| Option         | Type      | Description                      |
| -------------- | --------- | -------------------------------- |
| `accessToken`  | `string`  | OAuth2 access token              |
| `rootFolderId` | `string?` | Root folder ID (default: "root") |

### Methods

Implements all `IFileSystem` methods: `readFile`, `writeFile`, `readDir`, `stat`, `mkdir`, `rm`, `exists`.
