# API Reference

> API reference for @anymux/dropbox.

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

# API Reference

## `DropboxFileSystem`

Implements `IFileSystem` using the Dropbox API.

### Constructor

```ts
new DropboxFileSystem(options: DropboxFileSystemOptions)
```

### Options

| Option        | Type      | Description                            |
| ------------- | --------- | -------------------------------------- |
| `accessToken` | `string`  | Dropbox OAuth2 access token            |
| `rootPath`    | `string?` | Root path within Dropbox (default: "") |

### Methods

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