- /*
- * Update the size value of an OCFile in DB
- *
- private int updateSize(long id, long size) {
- ContentValues cv = new ContentValues();
- cv.put(ProviderTableMeta.FILE_CONTENT_LENGTH, size);
- int result = -1;
- if (getContentResolver() != null) {
- result = getContentResolver().update(ProviderTableMeta.CONTENT_URI, cv, ProviderTableMeta._ID + "=?",
- new String[] { String.valueOf(id) });
- } else {
- try {
- result = getContentProviderClient().update(ProviderTableMeta.CONTENT_URI, cv, ProviderTableMeta._ID + "=?",
- new String[] { String.valueOf(id) });
- } catch (RemoteException e) {
- Log_OC.e(TAG,"Fail to update size column into database " + e.getMessage());
- }
- }
- return result;
- }
- */
-
- /*
- * Update the size of a subtree of folder from a file to the root
- * @param parentId: parent of the file
- *
- private void updateSizesToTheRoot(long parentId) {
-
- OCFile file;
-
- while (parentId != FileDataStorageManager.ROOT_PARENT_ID) {
-
- // Update the size of the parent
- updateFolderSize(parentId);
-
- // search the next parent
- file = getFileById(parentId);
- parentId = file.getParentId();
-
- }
- }
- */
-