1
0
mirror of https://github.com/etesync/android synced 2024-12-23 07:08:16 +00:00

First sync failures on first account addition.

This commit is contained in:
Tom Hacohen 2020-08-27 17:26:43 +03:00
parent cea7f8fdc6
commit 251e610fe8

View File

@ -90,11 +90,11 @@ class EtebaseLocalCache private constructor(context: Context, username: String)
fun collectionSet(colMgr: CollectionManager, collection: Collection) {
val colDir = File(colsDir, collection.uid)
colDir.mkdir()
colDir.mkdirs()
val colFile = File(colDir, "col")
colFile.writeBytes(colMgr.cacheSaveWithContent(collection))
val itemsDir = getCollectionItemsDir(collection.uid)
itemsDir.mkdir()
itemsDir.mkdirs()
}
fun collectionUnset(colMgr: CollectionManager, colUid: String) {