浏览代码

use FileStorageUtils.fillOCFile in SynchronizeFolderOperation

Luke Owncloud 10 年之前
父节点
当前提交
d3be204240
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 1 9
      src/com/owncloud/android/operations/SynchronizeFolderOperation.java

+ 1 - 9
src/com/owncloud/android/operations/SynchronizeFolderOperation.java

@@ -460,15 +460,7 @@ public class SynchronizeFolderOperation extends RemoteOperation {
      * @return          New OCFile instance representing the remote resource described by we.
      */
     private OCFile fillOCFile(RemoteFile remote) {
-        OCFile file = new OCFile(remote.getRemotePath());
-        file.setCreationTimestamp(remote.getCreationTimestamp());
-        file.setFileLength(remote.getLength());
-        file.setMimetype(remote.getMimeType());
-        file.setModificationTimestamp(remote.getModifiedTimestamp());
-        file.setEtag(remote.getEtag());
-        file.setPermissions(remote.getPermissions());
-        file.setRemoteId(remote.getRemoteId());
-        return file;
+        return FileStorageUtils.fillOCFile(remote);
     }