May 8, 2020, 9:26pm
I would like to know if it is possible to copy public shared google drive file without the need for shared it with me?
The reason for this is i am using google service accounts in rclone and i can not add the public file to that accounts shared with me ,and the all possible solution i found for server to server copy is to use shared-with-me flag.
I need a solution that let me just add the URL of the public file and let rclone copy it server to server.
May 8, 2020, 9:30pm
If you just want to copy a single file then try
rclone copyurl -P https://d.com/file.txt drive:file.txt
May 8, 2020, 9:33pm
But it is not direct URL file.
It is google drive public file, so there is not direct download link for it.
May 8, 2020, 9:40pm
When you share a file on drive, it has a URL. I'm not following what you mean.
May 8, 2020, 9:45pm
Shared-with-me should work as well I believe if you authenticate using drive impersonate.
May 8, 2020, 9:46pm
I think the above command work basically with link that lead directly to file, not a landing page where you need to get the true direct download link.
the above google drive link is not lead directly to download link.
May 8, 2020, 9:47pm
It is not possible to add public links to shared with me for service accounts as they had no access to google gui.
Unless there is some command that let me add file to shared with me using shell.
May 8, 2020, 10:04pm
I see what you mean. If its a folder I know you can use the drive-root-folder-id. I don't think you can do that with a file though and i'm not even sure if the API supports that. Maybe V3 does.
rclone lsf --drive-root-folder-id=1vdYaK_MChKDHtc-XXXXXXXX drive:
May 10, 2020, 11:15am
Looks like this issue is up for grabs if someone want to have a go!
July 10, 2020, 7:15am
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.