Skip to content

Commit

Permalink
Fix an issue with not populating all the fields
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Danic <[email protected]>
  • Loading branch information
mario authored and tobiasKaminsky committed Jan 28, 2019
1 parent 6315c68 commit 0d4fa71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private void readData(MultiStatus remoteData, OwnCloudClient client) {
* Creates and populates a new {@link RemoteFile} object with the data read from the server.
*
* @param we WebDAV entry read from the server for a WebDAV resource (remote file or folder).
* @return New OCFile instance representing the remote resource described by we.
* @return New RemoteFile instance representing the remote resource described by we.
*/
private RemoteFile fillOCFile(WebdavEntry we) {
RemoteFile file = new RemoteFile(we.decodedPath());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,13 @@ public RemoteFile(WebdavEntry we) {
setRemoteId(we.remoteId());
setSize(we.size());
setFavorite(we.isFavorite());
setIsEncrypted(we.isEncrypted());
setMountType(we.getMountType());
setOwnerId(we.getOwnerId());
setOwnerDisplayName(we.getOwnerDisplayName());
setNote(we.getNote());
setUnreadCommentsCount(we.getUnreadCommentsCount());
setHasPreview(we.hasPreview());
}

/**
Expand Down

0 comments on commit 0d4fa71

Please sign in to comment.