sina-ie/cloudshell-gdrive-sync ? reverse-engineered prompt

Reverse engineered prompt

Build me a Cloud Shell setup that makes Google Drive feel like a normal folder I can work in from the terminal and VS Code.

I want it to mount my Drive into a workspace folder automatically when I open Cloud Shell, keep files in sync in both directions in real time, and use a local cache so edits feel fast and reliable. Please make it clean and safe for Cloud Shell, with the actual mount hidden in a temp location and a friendly shortcut folder in my home directory.

Also add a watchdog that checks the mount every minute and restarts it if it gets stuck or disconnected, plus a clean unmount script for logout or shutdown. It should work with rclone and FUSE, include simple logs, and be easy to install with one setup script. If you need to check the latest rclone or Cloud Shell details online, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab