Commit graph

221 commits

Author SHA1 Message Date
skilion 5ed7dfcf3c Merge pull request #27 from astanin/fix-missing-ctag
fix #24: crash on sync if cTag is missing
2016-02-11 22:41:29 +01:00
Sergey Astanin ab2923df4d fix #29: add a user-friendly message how to change fs.inotify.max_user_watches 2016-02-04 15:36:25 +01:00
Sergey Astanin b824f87e7e fix #24: crash on sync if cTag is missing
According to https://dev.onedrive.com/resources/item.htm
cTag property is not returned if the Item is a folder.
2016-02-03 15:29:30 +01:00
skilion c2b0b7f733 intercept curl exceptions 2015-12-29 19:38:15 +01:00
skilion ea970890a2 capability to run as service 2015-11-29 21:12:44 +01:00
skilion 3f40728779 redirect stdout to stderr 2015-10-18 10:12:10 +02:00
skilion 288d1feac1 avoid full inotify restart in the monitor loop 2015-10-10 22:18:33 +02:00
skilion 32009e2747 responses are encoded in UTF-8 2015-10-04 17:33:48 +02:00
skilion 789bdf8390 ignore 404 errors on delete 2015-10-04 16:27:02 +02:00
skilion e7d493807d reimplemented std.net.curl basic methods in order to intercept http status codes 2015-10-04 16:24:45 +02:00
skilion 9da9b7240d better way to check if a JSONValue has a member 2015-10-03 10:45:43 +02:00
skilion 2acd00209f rename the local item if it is unsynced and there is a new version of it 2015-09-30 15:53:49 +02:00
skilion 9a50174c08 missing parameters were making uploads fail 2015-09-30 15:14:39 +02:00
skilion 10cfa83d39 fixed bug which caused dirs to not get deleted 2015-09-28 13:42:58 +02:00
skilion 9b80d99ad4 support for files bigger than 100 MB and resumable uploads 2015-09-28 13:25:25 +02:00
skilion 88b11433a7 removed space from auth url 2015-09-27 18:56:50 +02:00
skilion b4aeda818a regex simplified 2015-09-25 21:39:18 +02:00
skilion 7afae8fbb8 correct way to test if a value is in the AA 2015-09-24 19:12:19 +02:00
skilion 3489827431 alert when no config file is found 2015-09-24 18:59:17 +02:00
skilion f7e4b2f1e3 fixed acces to json nested objects 2015-09-22 16:14:16 +02:00
skilion 07f5f1ce78 create config dir if it doesn't exist 2015-09-22 15:26:45 +02:00
skilion 7cfa936db8 changed how config files works 2015-09-22 14:48:18 +02:00
skilion a032ef9671 changed help message 2015-09-22 11:52:57 +02:00
skilion 1c21474301 more error handling 2015-09-22 11:52:28 +02:00
skilion 85cd44cf73 better help message 2015-09-22 11:20:54 +02:00
skilion da2cfbde9c additional fix for wildcards 2015-09-22 11:16:06 +02:00
skilion 21993b36ee removed useless destructor 2015-09-22 10:56:14 +02:00
skilion c74282879b fix Precondition Failed after upload 2015-09-21 17:23:12 +02:00
skilion 7ea7c0f9cd case insensitive patterns 2015-09-21 13:04:05 +02:00
skilion d2ec6c688f better exception management 2015-09-20 21:21:51 +02:00
skilion 4498c03dec skip slash from regex match 2015-09-20 20:23:09 +02:00
skilion 30504d7034 better path handling 2015-09-20 19:07:16 +02:00
skilion a877bad3ad run garbage collection after the synchronization 2015-09-20 14:49:44 +02:00
skilion 74fadfb262 support path with tilde 2015-09-20 14:20:01 +02:00
skilion 2d50e43674 removed path dependency in Item 2015-09-19 15:38:43 +02:00
skilion 8d00ad5672 updated monitor.d to filter paths 2015-09-19 14:25:39 +02:00
skilion f0c12e4002 improved regex to use with paths 2015-09-19 14:21:33 +02:00
skilion 5c6ed227a7 assert on item select 2015-09-19 14:14:51 +02:00
skilion 59d7c0c311 use wildcards instead of regex 2015-09-19 09:45:45 +02:00
skilion 10efa036b4 implemented monitor filter 2015-09-18 22:56:09 +02:00
skilion 7126c4fefc implemented filter in sync 2015-09-18 21:42:27 +02:00
skilion 9aa1f221c7 skip filtered files in applyDiifferences 2015-09-17 17:34:58 +02:00
skilion 9867a7abea possibility to get a default value in Config.get 2015-09-17 16:43:45 +02:00
skilion 35c290c4a0 working monitor 2015-09-17 16:28:24 +02:00
skilion e8f7d99653 check sqlite version 2015-09-17 10:50:20 +02:00
skilion 4d230a394c finalizing 2015-09-17 00:16:23 +02:00
skilion f887b29061 sync root folder 2015-09-16 10:29:20 +02:00
skilion c3c3a714e7 skip root directory 2015-09-15 14:54:07 +02:00
skilion 2d4cf32be5 refactoring 2015-09-14 23:56:14 +02:00
skilion ff07f13cd6 command line options 2015-09-14 19:21:06 +02:00
skilion 424e77e4b5 do not care about directory mtime 2015-09-14 12:57:47 +02:00
skilion 0f21508cfe removed redundant column 'path' in the db 2015-09-14 11:56:40 +02:00
skilion 54e60d4528 real time changes 2015-09-11 18:33:22 +02:00
skilion 22b1107a10 finished monitor 2015-09-11 11:02:07 +02:00
skilion 482cd4be0b wp on monitor 2015-09-10 23:05:15 +02:00
skilion 504b9d041a fix error where JSONValue become an array instead of a string 2015-09-10 23:04:15 +02:00
skilion 2de650d2be working uploadDifferences 2015-09-08 18:25:41 +02:00
skilion c08706cbf8 added method to iterate trough all items 2015-09-07 18:33:16 +02:00
skilion 20dbc9795c upload should fail if the file already exists 2015-09-07 13:28:15 +02:00
skilion ac4584f795 half working uploadDifference 2015-09-06 22:42:44 +02:00
skilion f8e87a2d4f removed old code 2015-09-06 13:00:05 +02:00
skilion 84f6d59813 added createByPath 2015-09-06 11:06:13 +02:00
skilion 61c5ea7789 added deleteById 2015-09-06 10:23:32 +02:00
skilion a732845db3 renamed check to checkHttpCode 2015-09-06 10:07:18 +02:00
skilion 60a5b799f9 added updateById 2015-09-05 21:23:43 +02:00
skilion 3357a013f7 uploadDifferences skeleton 2015-09-04 21:00:22 +02:00
skilion 9dea1c1448 set the callback earlier 2015-09-02 11:21:19 +02:00
skilion 8b7cf7a58d removed useless dup 2015-09-02 11:20:42 +02:00
skilion 8cddcf3b80 renew access token after expiration 2015-09-01 22:23:42 +02:00
skilion e2ad29744a fix missing catch 2015-09-01 21:17:09 +02:00
skilion 00d53f648e first commit 2015-09-01 20:47:44 +02:00