From 3cb2f1270c05fc2b6dff1043368bab7f40bdb835 Mon Sep 17 00:00:00 2001 From: Bartek Przybylski Date: Sun, 29 Apr 2012 00:39:50 +0200 Subject: [PATCH] missing file write --- src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java b/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java index bf4801273e..35b08c5489 100644 --- a/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java +++ b/src/eu/alefzero/owncloud/syncadapter/FileSyncAdapter.java @@ -90,6 +90,9 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter { file.setMimetype(we.contentType()); file.setModificationTimestamp(we.modifiedTimesamp()); file.setParentId(parentId); + getStorageManager().saveFile(file); + if (parentId == 0) parentId = file.getFileId(); + if (we.contentType().equals("DIR")) fetchData(getUri().toString() + we.path(), syncResult, file.getFileId()); }