private void createNewOCFile(String newRemotePath){
  OCFile newFile=new OCFile(newRemotePath);
  newFile.setCreationTimestamp(mFile.getCreationTimestamp());
  newFile.setFileLength(mFile.getFileLength());
  newFile.setMimetype(mFile.getMimetype());
  newFile.setModificationTimestamp(mFile.getModificationTimestamp());
  newFile.setModificationTimestampAtLastSyncForData(mFile.getModificationTimestampAtLastSyncForData());
  newFile.setEtag(mFile.getEtag());
  newFile.setFavorite(mFile.isFavorite());
  newFile.setLastSyncDateForProperties(mFile.getLastSyncDateForProperties());
  newFile.setLastSyncDateForData(mFile.getLastSyncDateForData());
  newFile.setStoragePath(mFile.getStoragePath());
  newFile.setParentId(mFile.getParentId());
  mOldFile=mFile;
  mFile=newFile;
}

private void createNewOCFile ( String newRemotePath ) { OCFile newFile = new OCFile ( newRemotePath ) ; newFile . setCreationTimestamp ( mFile . getCreationTimestamp ( ) ) ; newFile . setFileLength ( mFile . getFileLength ( ) ) ; newFile . setMimetype ( mFile . getMimetype ( ) ) ; newFile . setModificationTimestamp ( mFile . getModificationTimestamp ( ) ) ; newFile . setModificationTimestampAtLastSyncForData ( mFile . getModificationTimestampAtLastSyncForData ( ) ) ; newFile . setEtag ( mFile . getEtag ( ) ) ; newFile . setFavorite ( mFile . isFavorite ( ) ) ; newFile . setLastSyncDateForProperties ( mFile . getLastSyncDateForProperties ( ) ) ; newFile . setLastSyncDateForData ( mFile . getLastSyncDateForData ( ) ) ; newFile . setStoragePath ( mFile . getStoragePath ( ) ) ; newFile . setParentId ( mFile . getParentId ( ) ) ; mOldFile = mFile ; mFile = newFile ; }
create a new ocfile mfile with new remote path . this is required if forceoverwrite = = false . new file is stored as mfile , original as moldfile .
