prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

Replace or version files option with upload command? #592

Closed princefishthrower closed 3 years ago

princefishthrower commented 3 years ago

Hi, love the library!

I have a feature request.

The standard Google Drive GUI allows you to 'replace' (I think internally it versions) files when they have the same name. I noticed when I used the upload command with gdrive, it simply creates a new file, not replacing or updating the 'version' of the file I already had in my folder. Would it be possible to provide this 'replace' option with the upload command? I didn't see any such option in the docs. Otherwise, I'll go forward with a first delete, then upload pattern - not ideal but acceptable for what I am using it for.

princefishthrower commented 3 years ago

Ah. Just found these are referred to as 'revisions' within this tool, and they can be replaced by revision ID.