anki-sync-server/ankisyncd
flan 7ef3d4f3fa Fix full sync on Windows
From <https://docs.python.org/3.7/library/os.html#os.rename>:
> On Windows, if dst already exists, OSError will be raised even if
> it is a file.
...
> If you want cross-platform overwriting of the destination, use
> replace().

Thanks to kerry liu (https://github.com/hqzxjczx) for reporting this.

Fixes #32.
2019-04-16 19:57:24 +02:00
..
__init__.py Remove media patch, put usnLim in server code 2018-08-20 15:44:13 +02:00
__main__.py Make the server runnable with python3 -m ankisyncd 2018-08-20 14:42:40 +02:00
collection.py Load the CollectionWrapper from a factory method 2019-03-09 14:05:15 +08:00
config.py Log all ankisyncd events under ankisyncd.* 2019-03-08 14:24:58 +01:00
full_sync.py Fix full sync on Windows 2019-04-16 19:57:24 +02:00
sessions.py Don't create DBs during schema check if they don't exist 2019-03-16 15:24:46 +01:00
sync_app.py Load the CollectionWrapper from a factory method 2019-03-09 14:05:15 +08:00
thread.py Load the CollectionWrapper from a factory method 2019-03-09 14:05:15 +08:00
users.py Don't create DBs during schema check if they don't exist 2019-03-16 15:24:46 +01:00