rakyll / drive

Pull or push Google Drive files
471 stars 507 forks source link

Drive Push command repeats files when recursive #29

Open CountryBumkin opened 9 years ago

CountryBumkin commented 9 years ago

I am using drive to push a folder tree recursively to backup files. However each run will detect some already pushed files as requiring upload again, sometimes hundreds of files are involved.

For example on Linux Mint 17 64 bit using drive from both April 2014 and today and this script...

!/bin/sh -x

exec > ~/edev/drive/Gdrive.log
exec 2>&1

date drive push -r -no-prompt ~/gd/test1 echo "N" | drive push -r ~/gd/test1 date exit

The log file contains...

[snip boring lines]

83 / 85 [=========================================================>-] 97.65 % 5s 84 / 85 [===========================================================] 98.82 % 2s 85 / 85 [=======================================================] 100.00 % 4m11s

The first run of drive correctly uploads the list of files but a second run immediately afterward wants to repeat one of the files, on some occasions hundreds of files from the directory tree.

Regards C Bumkin

odeke-em commented 9 years ago

Thanks for reporting this. This is most likely going to be fixed when #28 is merged in. Please watch the repo for a notification when the merge is made or I'll ping you up once it is in.