Skip to main content
GDriveResource exposes a user’s Drive (My Drive plus shared drives the user can see) as a tree. Setup steps for OAuth credentials live at Google Workspace Credentials.

Node

Browser

The browser examples in examples/typescript/browser/src/gdrive_pkce.ts show a full PKCE flow that keeps the secret out of the page.

Config

Mount mode

read and write. Under write mode the standard write commands (tee, cp, mv, rm, mkdir, sed -i, …) work on regular files and folders; Google-native files (.gdoc.json, .gsheet.json, .gslide.json) are mutated through the gws commands instead. A Shared Drive is writable on the same terms as My Drive: every Drive call carries supportsAllDrives, so what you may change is decided by your role on that drive rather than by the mount, and a role that forbids the change fails with EACCES on that operand. For the mounted layout, the gws command reference, and snapshot behavior see the Python Drive docs.