Vitaliy Filippov
5bc503279a
Remove JSON-C json wrappers, use YAJL for everything
2015-05-16 00:37:02 +03:00
Vitaliy Filippov
ac1763f2c7
Merge https://github.com/visap/grive/commits/visa
2015-05-16 00:36:26 +03:00
Vitaliy Filippov
c0c89c306c
Remove useless swap() code
2015-05-14 01:10:09 +03:00
Vitaliy Filippov
400d9e0c0f
Fix long/int cast errors
2014-07-23 14:51:13 +04:00
Visa Putkinen
3775572f46
Retry upload on XML error instead of crashing
...
Sometimes the Google Drive API sends malformed XML which crashes grive.
This patch adds a simple try-catch to Resource::Upload that retries the
upload if an XML exception is thrown from AuthAgent::Put.
2013-11-27 00:15:24 +02:00
Visa Putkinen
84785ec473
Fix hang when upload receives HTTP 500
...
When an uploading PUT request got a HTTP 500 as reponse, grive hanged
forever inside libcurl. This was because the File parameter was not
rewound to 0 position on retry. The XmlResponse had to be cleared as
well.
Rewinding the File and clearing the XmlResponse were not enough to fix
the problem, because when retrying after 500, HTTP 410 Gone or 412
Precondition failed is often received, and CheckHttpResponse would throw
an exception that crashes grive. Therefore, I implemented a retry logic
to Resource::Upload that retries the whole upload transaction if 410 or
412 was received.
2013-11-27 00:15:24 +02:00
Visa Putkinen
8b434dad14
Reduce number of syscalls while scanning local files
2013-11-24 14:34:03 +02:00
Visa Putkinen
c15bfbe8bc
Ignore only .grive and .grive_state
2013-11-24 14:25:01 +02:00
Vitaliy Filippov
752eb3fdda
Allow to sync just one directory in the root
2013-09-08 02:36:30 +04:00
Nestal Wan
62dc542341
refactored old GDoc API into v1 namespace. using v2 namespace for new Google Drive API
2013-04-29 23:47:33 +08:00
Nestal Wan
738435837b
using DataStream instead of Receiveable
2013-04-29 23:47:32 +08:00
Nestal Wan
443a85d558
removing redundant header parameter in Feed
2013-04-29 23:47:32 +08:00
Nestal Wan
755ee1c9ad
new qt gui
2013-04-29 23:47:32 +08:00
Nestal Wan
804fe923f2
refactored the config file part from #109
2012-07-30 16:52:59 +08:00
Nestal Wan
612b35a090
fixed compiler warnings
2012-07-30 16:43:51 +08:00
justin
034891a610
issue 86 allow sync folder to be specified, move Config class and add basic unit test
2012-07-29 18:17:41 +01:00
justin
e0383a843c
remove unused code
2012-07-29 17:53:02 +01:00
Nestal Wan
d831b8d59f
support creating revisions with --new-rev ( #87 )
2012-07-27 00:45:53 +08:00
Nestal Wan
fd81cc1fe4
added --log-xml for debugging ( #80 )
2012-07-27 00:17:44 +08:00
justin
96227d38cf
store modified time of file in m_mtime instead of passing value as param
2012-07-19 22:22:34 +01:00
Nestal Wan
28e8012ca5
added AuthAgent, a wrapper around http agent
2012-07-20 00:39:36 +08:00
Nestal Wan
57c431dd83
added logs for tracing last sync time
2012-07-19 23:48:01 +08:00
Nestal Wan
7cc4984932
use mmap for checksum
2012-07-17 01:59:00 +08:00
Nestal Wan
ce245576b5
use StdioFile for uploading ( #88 )
2012-07-17 01:58:16 +08:00
Nestal Wan
75c67dad8d
added class & functions for memory mapped files
2012-07-17 01:08:34 +08:00
Nestal Wan
94383e0030
ignoring files with missing MD5 checksum in remote feeds
2012-07-16 23:37:50 +08:00
Nestal Wan
593c335a5e
improved logging for HTTP responses
2012-07-16 23:23:08 +08:00
justin
e28fe96260
fix deleted local file downloaded again
2012-07-15 17:33:33 +01:00
Nestal Wan
80f3fbf370
refactored the logs to debug sync problems
2012-07-12 00:36:58 +08:00
Nestal Wan
278037b07b
fixed incorrect name in pdf files
2012-07-12 00:30:19 +08:00
Ben L
06bf4fe58d
Fix empty filenames for Google Docs
2012-07-03 13:42:16 -05:00
Nestal Wan
daa1fe9ca3
refactored a bit for the fix in #76
2012-06-27 23:18:12 +08:00
Georges Dubus
34be2e7a87
Fixed a bug where grive crashed on the first run.
...
It gived a negative start index to get the changes feed, which is
illegal. The error returned by the server triggered a crash.
Fixes #76 .
2012-06-27 14:17:13 +02:00
Nestal Wan
460a4fd8f2
save the changestamp after sync ( #68 )
2012-06-26 00:13:18 +08:00
Nestal Wan
1d1365ea1a
refactored code in Update() to DetectChanges()
2012-06-23 18:23:43 +08:00
Erik Hardesty
62238c5ba6
Move update logic out of Grive constructor
...
This is to make it easier to repeatedly sync the
directory when used in a daemon-like setting without
reinstantiating the class
2012-06-21 18:47:01 -05:00
Nestal Wan
c5a5221f4b
disable an unimportant assertion and replace it with a warning
2012-06-20 22:46:17 +08:00
Nestal Wan
a799e7a611
fixed boost fs v2 compile error found by pavel.savara
2012-06-20 22:02:42 +08:00
Nestal Wan
55c0f4e6d5
mark folder and its children as created/deleted recursively ( #61 )
2012-06-18 23:44:28 +08:00
Nestal Wan
023c208d85
fixed assertion on dry-runs
2012-06-18 23:17:28 +08:00
Nestal Wan
48391bb16f
added more log for dry-run ( #65 )
2012-06-17 16:33:38 +08:00
Nestal Wan
55ac367255
escape the directory names when uploading ( #66 )
2012-06-17 15:58:27 +08:00
Nestal Wan
277274f026
fixed handling on changes feed.
2012-06-15 00:55:00 +08:00
Nestal Wan
ea4fda5b54
fix recursively add folder ( #59 )
2012-06-14 01:42:41 +08:00
Nestal Wan
5740d7b77f
cherry-picked commits from petrj ( #60 )
2012-06-12 23:53:32 +08:00
Nestal Wan
b0c0353fdb
seems like the changes handling is still not perfect
2012-06-11 00:52:04 +08:00
Nestal Wan
8d822e3582
now sync'ing folder is the same as sync'ing files
2012-06-11 00:40:56 +08:00
Nestal Wan
991d8e444f
recursively sync the resources
2012-06-10 23:38:27 +08:00
Nestal Wan
7be193c35b
added unit test case
2012-06-10 23:11:32 +08:00
Nestal Wan
f0ce00ca7b
improved support for changes feed
2012-06-10 21:13:47 +08:00