I am trying to run a Node script that removes duplicate folders from my company's Google Drive. Note: I'm not doing an actual reclone dedupe, this is a custom thing to remove folders with names like "Folder (2)" or "Folder (2) (2)".
Everything works perfectly until I try to use fs.unlink or the rimraf library to remove the folders when I'm done -- I get an I/O error. Looking through Github I see this is probably because the company GDrive is shared with me and I didn't create these files.
Now, normally I'd just use a service account and all would be well... except that our GDrive is really our boss's personal account, not a GSuite account.
So basically, I need my boss to be able to go through the oAuth rigamarole and then send me his key or whatever it is, so that I can mount the drive as him.
Is there a way to do this manually?