gdrive icon indicating copy to clipboard operation
gdrive copied to clipboard

Duplicate files: every time i use "drive upload --share --file xyz" a duplicate "xyz" is created.

Open tonyroza opened this issue 11 years ago • 11 comments

A new id number is created for each copy of "xyz". I am using this to share a few spreadsheets however, the documents will be updated from time to time. I cannot figure out how to prevent the duplicates using this tool which means I cannot send some a link to a document and then update the document later.

tonyroza avatar Aug 06 '15 06:08 tonyroza

This would be a very important function. I'd like to backup multiple files automatically, i.e. mirror the local folder to Google Drive cloud.

qzcw avatar Aug 16 '15 18:08 qzcw

Yes, i would love gdrive to use Google Drive revision system for example.

berna1995 avatar Aug 16 '15 18:08 berna1995

I also need this if it real.

alpiua avatar Oct 06 '15 10:10 alpiua

@tonyroza The behavior you're seeing is how Google Drive works. It doesn't uniquely identify files by name.

User @occho made a fork to add an update file feature, which is what I believe you and others have been looking for. I tested it briefly and it works, although I had to change some of the imports to build the binary correctly. Example:

drive.exe upload -u 0BytCbNhl3nyPelYtNGNzdlEtbkU -f time.txt

robertogomez avatar Oct 11 '15 01:10 robertogomez

@robertogomez Can you please upload a compiled version of that specific fork? Im not able to compile the source.

berna1995 avatar Oct 28 '15 19:10 berna1995

@berna - Are you using golang v1.4.2 when compliling gdrive ?

It is the only version i have ever used to compile gdrive , and it has always worked (tried with v1.5.2 , but was getting errors).

Drezzler avatar Oct 30 '15 07:10 Drezzler

@Drezzler I tried the last version on Linux. Have you suceeded compiling with v.1.4.2?

berna1995 avatar Nov 01 '15 14:11 berna1995

@berna1995 Hi I uploaded executables I made with golang v1.4.2. https://drive.google.com/file/d/0B5wVSvViMOXmSGVmdFlUX0dtVm8/view?usp=sharing I will remove it at some later point.

occho avatar Nov 01 '15 14:11 occho

@occho Thank you very much. I'll test later. :+1:

berna1995 avatar Nov 01 '15 14:11 berna1995

@occho Works like a charm for me! Thanks a lot! :+1:

Arvur avatar Dec 17 '15 11:12 Arvur

gdrive 2 supports updating files: gdrive update 0B3X9GlR6EmbnNTk0SkV0bm5Hd0E gdrive-osx-x64.

prasmussen avatar Feb 23 '16 20:02 prasmussen