How astrada/google-drive-ocamlfuse works
google-drive-ocamlfuse mounts Google Drive as a Linux FUSE filesystem. The documented user flow is to authorize the application, configure an account, then run it against a mount point; filesystem operations provide read/write access to ordinary files and folders, with read-only export for Google documents. The tree identifies likely implementation modules, but no source excerpts were provided, so internal calls are not asserted; dashed edges mark relationships whose precise implementation is unverified.
Main entry points: drive.ml Filesystem operations · gdfuseCli.ml Command line · gdfuseFuseNative.ml FUSE operations · gdfuseFlow.ml Application flow
Components 20
Application entry
- Command line
src/gdfuseCli.ml - Application flow
src/gdfuseFlow.ml
Authorization and config
- Account config
src/config.ml - OAuth2
src/oauth2.ml - OAuth callback
src/loopbackServer.ml
Mounted filesystem
- FUSE operations
src/gdfuseFuseNative.ml - Filesystem operations
src/drive.ml - Directory reads
src/driveDirectoryReads.ml - File mutations
src/driveFileMutations.ml - Extended attributes
src/driveXattrs.ml - Document exports
src/mime.ml
Drive data and cache
- Metadata cache
src/cache.ml - Persistent cache
src/dbCache.ml - File downloads
src/driveDownloads.ml - Read-ahead streaming
src/driveStreaming.ml - Upload queue
src/uploadQueue.ml - Folder fetching
src/backgroundFolderFetching.ml
Other components
- User
- FUSE kernel
- Google Drive API
Connections 19
- User → Command line: runs
README.md - Command line → OAuth2: authorizes
- OAuth2 → OAuth callback: receives callback
- Command line → Account config: selects account
README.md - Command line → Application flow: starts mount
- Application flow → FUSE operations: mounts filesystem
README.md - FUSE kernel → FUSE operations: issues operations
- FUSE operations → Filesystem operations: dispatches operations
- Filesystem operations → Directory reads: reads directories
- Filesystem operations → File mutations: changes files
- Filesystem operations → Extended attributes: handles attributes
- Filesystem operations → Document exports: exports documents
- Filesystem operations → Metadata cache: caches metadata
- Metadata cache → Persistent cache: persists entries
- Filesystem operations → File downloads: downloads content
- File downloads → Read-ahead streaming: streams reads
- Filesystem operations → Upload queue: queues writes
- Filesystem operations → Folder fetching: fetches folders
- Filesystem operations → Google Drive API: accesses remote files
README.md