AnyMux

API Reference

GoogleDriveFileSystem

Implements IFileSystem using the Google Drive API.

Constructor

new GoogleDriveFileSystem(options: GoogleDriveFileSystemOptions)

Options

OptionTypeDescription
accessTokenstringOAuth2 access token
rootFolderIdstring?Root folder ID (default: "root")

Methods

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